Gathering detailed insights and metrics for webpack-parallel-uglify-plugin-2
Gathering detailed insights and metrics for webpack-parallel-uglify-plugin-2
Gathering detailed insights and metrics for webpack-parallel-uglify-plugin-2
Gathering detailed insights and metrics for webpack-parallel-uglify-plugin-2
npm install webpack-parallel-uglify-plugin-2
Typescript
Module System
Node Version
NPM Version
50.6
Supply Chain
30.4
Quality
71.4
Maintenance
50
Vulnerability
98.2
License
JavaScript (100%)
Built with Next.js • Fully responsive • SEO optimized • Open source ready
Total Downloads
896
Last Day
2
Last Week
2
Last Month
17
Last Year
105
463 Stars
122 Commits
34 Forks
6 Watchers
3 Branches
10 Contributors
Updated on Aug 09, 2025
Latest Version
1.0.3
Package Id
webpack-parallel-uglify-plugin-2@1.0.3
Size
9.25 kB
NPM Version
5.3.0
Node Version
8.3.0
Cumulative downloads
Total Downloads
Last Day
100%
2
Compared to previous day
Last Week
0%
2
Compared to previous week
Last Month
325%
17
Compared to previous month
Last Year
66.7%
105
Compared to previous year
1
This plugin serves to help projects with many entry points speed up their builds. The UglifyJS plugin provided with webpack runs sequentially on each of the output files. This plugin runs uglify in parallel with one thread for each of your available cpus. This can lead to significantly reduced build times as minification is very CPU intensive.
Configuring is straightforward.
1import ParallelUglifyPlugin from 'webpack-parallel-uglify-plugin'; 2 3module.exports = { 4 plugins: [ 5 new ParallelUglifyPlugin({ 6 // Optional regex, or array of regex to match file against. Only matching files get minified. 7 // Defaults to /.js$/, any file ending in .js. 8 test, 9 include, // Optional regex, or array of regex to include in minification. Only matching files get minified. 10 exclude, // Optional regex, or array of regex to exclude from minification. Matching files are not minified. 11 cacheDir, // Optional absolute path to use as a cache. If not provided, caching will not be used. 12 workerCount, // Optional int. Number of workers to run uglify. Defaults to num of cpus - 1 or asset count (whichever is smaller) 13 sourceMap, // Optional Boolean. This slows down the compilation. Defaults to false. 14 uglifyJS: { 15 // These pass straight through to uglify-js@3. 16 // Cannot be used with uglifyES. 17 // Defaults to {} if not neither uglifyJS or uglifyES are provided. 18 // You should use this option if you need to ensure es5 support. uglify-js will produce an error message 19 // if it comes across any es6 code that it can't parse. 20 }, 21 uglifyES: { 22 // These pass straight through to uglify-es. 23 // Cannot be used with uglifyJS. 24 // uglify-es is a version of uglify that understands newer es6 syntax. You should use this option if the 25 // files that you're minifying do not need to run in older browsers/versions of node. 26 } 27 }), 28 ], 29};
These times were found by running webpack on a very large build, producing 493 output files and totaling 144.24 MiB before minifying. All times are listed with fully cached babel-loader for consistency.
No minification: Webpack build complete in: 86890ms (1m 26s)
Built in uglify plugin: Webpack build complete in: 2543548ms (42m 23s)
With parallel plugin: Webpack build complete in: 208671ms (3m 28s)
With parallel/cache: Webpack build complete in: 98524ms (1m 38s)
No vulnerabilities found.