webpack打包时候去掉console.log配置
作者:互联网
一、
new UglifyJsPlugin({ uglifyOptions: { compress: { warnings: false, drop_console: true,//console pure_funcs: ['console.log']//移除console } }, sourceMap: config.build.productionSourceMap, parallel: true }),
二、
标签:UglifyJsPlugin,funcs,console,log,webpack,移除,true 来源: https://www.cnblogs.com/mzjwx/p/11755078.html