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