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.3
Supply Chain
64.5
Quality
71.6
Maintenance
100
Vulnerability
98.6
License
JavaScript (100%)
Total Downloads
877
Last Day
2
Last Week
4
Last Month
13
Last Year
96
464 Stars
122 Commits
34 Forks
6 Watchers
2 Branches
10 Contributors
Updated on Mar 07, 2025
Minified
Minified + Gzipped
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
0%
2
Compared to previous day
Last Week
100%
4
Compared to previous week
Last Month
8.3%
13
Compared to previous month
Last Year
47.7%
96
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.
Reason
no binaries found in the repo
Reason
0 existing vulnerabilities detected
Reason
Found 2/12 approved changesets -- score normalized to 1
Reason
0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0
Reason
no effort to earn an OpenSSF best practices badge detected
Reason
license file not detected
Details
Reason
security policy file not detected
Details
Reason
project is not fuzzed
Details
Reason
branch protection not enabled on development/release branches
Details
Reason
SAST tool is not run on all commits -- score normalized to 0
Details
Score
Last Scanned on 2025-06-30
The Open Source Security Foundation is a cross-industry collaboration to improve the security of open source software (OSS). The Scorecard provides security health metrics for open source projects.
Learn More