Webpack plugin that uses optimize-js
Thanks to @nolanlawson for his awesome work.
npm i --save-dev optimize-js-plugin
// webpack.config.js
const OptimizeJsPlugin = require("optimize-js-plugin");
module.exports = {
entry: //...,
output: //...,
plugins: [
new webpack.optimize.UglifyJsPlugin(options),
new OptimizeJsPlugin({
sourceMap: false
})
]
}
All options as mentioned here