• This repository has been archived on 19/Sep/2019
  • Stars
    star
    144
  • Rank 255,590 (Top 6 %)
  • Language
    JavaScript
  • License
    MIT License
  • Created over 8 years ago
  • Updated about 5 years ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

Identical to standard uglify webpack plugin, with an option to build multiple files in 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
        })
    ]
}