webpack中用UglifyJsPlugin插件运行失败,什么原因

2024-12-29 16:55:23
推荐回答(1个)
回答1:

webpack.config.js的plugins里面加上drop_debugger:true,drop_console:truenewwebpack.optimize.UglifyJsPlugin({compress:{warnings:false,drop_debugger:true,drop_console:true}})