vue2去掉console打包
修改build文件夹中webpack.prod.conf.js的内容如下:new UglifyJsPlugin({uglifyOptions: {compress: {warnings: falsedrop_debugger: truedrop_console: true...
·
修改build文件夹中webpack.prod.conf.js的内容如下:
new UglifyJsPlugin({
uglifyOptions: {
compress: {
warnings: false
drop_debugger: true
drop_console: true
}
},
sourceMap: config.build.productionSourceMap,
parallel: true
}),
更多推荐
已为社区贡献10条内容
所有评论(0)