原文地址:https://stackoverflow.com/questions/41040266/remove-console-logs-with-webpack-uglify

uglifyOptions: {
compress: {
global_defs: {
"@alert": "console.log", // 去掉alert
},
// drop_console: true
}
},
网友评论