标签:log console src 截图 build source code pre kconfig
添加如下代码
const webpackConfig = merge(baseWebpackConfig, {
plugins: [
new webpack.optimize.UglifyJsPlugin({ //自动删除console.log
compress: {
warnings: false,
drop_debugger: true,
drop_console: true,
pure_funcs: ['console.log']
},
sourceMap: true,
parallel: true,
}),
]
})
标签:log console src 截图 build source code pre kconfig
原文地址:https://www.cnblogs.com/lxk0301/p/11684149.html