new UglifyJsPlugin vue项目打包后不让报错
new UglifyJsPlugin({ uglifyOptions: { compress: { warnings: false, //过滤console.log-start drop_console: true, pure_funcs: ['console.log'] //过滤console.log-end } }, sourceMap: config.build.productionSourceMap, parallel: true }), new UglifyJsPlugin({ uglifyOptions: { compress: { warnings: false } }, sourceMap: config.build.productionSourceMap, parallel: true }),