- 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
- }),
来源: http://www.bubuko.com/infodetail-3257082.html