uglify-js-plugin
v0.0.6
Published
Uglify JavaScript for webpack
Downloads
7,922
Readme
uglify-js-plugin
Uglify JavaScript for webpack
Install
$ npm install uglify-js-plugin --save-dev
Usage
//webpack.config.js
var UglifyJsPlugin = require('uglify-js-plugin');
module.exports = {
entry: {
hello: './src/hello.js'
},
output: {
path: './build',
filename: '[name].js'
},
plugins: [
new UglifyJsPlugin({
compress: true, //default 'true', you can pass 'false' to disable this plugin
debug: true //default 'false', it will display some information in console
})
]
};