Identical to standard uglify webpack plugin, with an option to build multiple files in parallel
npm install --save-dev webpack-uglify-parallel
In webpack.config.js:
var os = require('os');
var UglifyJsParallelPlugin = require('webpack-uglify-parallel');
module.exports = {
/// ... rest of config
plugins: [
new UglifyJsParallelPlugin({
workers: os.cpus().length, // usually having as many workers as cpu cores gives good results
// other uglify options
})
]
}