Identical to standard uglify webpack plugin, with an option to build multiple files in parallel
JavaScript
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
lib Initial commit May 8, 2016
.gitignore
LICENSE
README.md Update readme to reflect that official plugin now supports paralleliz… Jul 25, 2017
index.js
package.json Bump version Sep 15, 2017

README.md

webpack-uglify-parallel

This project is deprecated in favor of official uglifyjs plugin, which now supports parallelization

Identical to standard uglify webpack plugin, with an option to build multiple files in parallel

Installation

npm install --save-dev webpack-uglify-parallel

Usage

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
        })
    ]
}