use
new webpack.optimize.UglifyJsPlugin({
compress: {
warnings: false,
drop_debugger: true,
drop_console: true
}
)}
prompt that the method has been removed. It is recommended that you use minimize,minimize to remove console.