Vue CLI 3 vue.config.js vs webpack.config.js for plugins
问题 I'm using Vue CLI 3, and I need to add the Terser Webpack Plugin for removing console.log and comments from the code. This isn't working with my current setup - logs and comments are still in the build. My production workflow: Run npm run build Run serve -s dist vue.config.js: module.exports = { publicPath: "./" } webpack.config.js: const TerserPlugin = require('terser-webpack-plugin'); module.exports = { optimization: { minimize: true, minimizer: [ new TerserPlugin({ terserOptions: { ecma: