Build multiple webpack configurations in parallel using all CPU cores. Current stable version is 2.6.0 (released 2020), with an alpha 3.0.0 that drops watch mode and switches from worker-farm to jest-worker. Reduces build times dramatically (e.g., from 16 min to 2 min for 32 variants). Key differentiator: built-in createVariants helper for generating configuration combinations without manual config arrays.
npm install parallel-webpackVerified import paths — ran on the pinned version, not inferred.
Demonstrates basic usage: exporting an array of configs and running via CLI to build in parallel.
Stay on v2.6.0 or implement custom watch logic.
Test with your config; upgrade only after validating behavior.
Use webpack 4 or test with webpack 5 at your own risk.
Update to v2.5.0+ or export a static array.
Update to v2.6.0+; older versions may hang.
Run `npm install parallel-webpack --save-dev` and use `npx parallel-webpack`.
Install webpack 4: `npm install webpack@4 --save-dev`.
Use `const { createVariants } = require('parallel-webpack');`