uglify-js-plugin
Uglify JavaScript for webpack
Install
$ npm install uglify-js-plugin --save-dev
Usage
//webpack.config.jsvar UglifyJsPlugin = ; moduleexports = entry: hello: './src/hello.js' output: path: './build' filename: '[name].js' plugins: compress: true //default 'true', you can pass 'false' to disable this plugin debug: true //default 'false', it will display some information in console ;