Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
getWebpackConfig() {
// Use VueService to create full webpack config for us:
const plugins = [{ id: '@vue/cli-plugin-babel', apply: vuePluginBabel }]
if (this.config.build.eslint) {
plugins.push({ id: '@vue/cli-plugin-eslint', apply: vuePluginEslint })
}
const service = new VueService(this.getPath('build'), {
inlineOptions: this.getVueConfig(),
plugins
})
service.init(this.mode)
return service.resolveWebpackConfig()
}
}