A webpack plugin to asynchronously uglify webpack bundles
$ npm install --save async-uglify-js-webpack-plugin
var AsyncUglifyJs = require("async-uglify-js-webpack-plugin");
module.exports = {
plugins: [
new AsyncUglifyJs({
delay: 5000,
minifyOptions: {},
logger: false,
done: function(path, originalContents) { }
})
]
}
Use minifyOptions
to further customize uglifying.
See UglifyJS.minify
docs.
MIT © Javier Blanco