This package provides a customizable progress bar for Webpack builds, leveraging the node-progress library. It supports a wide range of Webpack versions (1.x through 5.x) and offers options like format, width, throttle, custom summary, and chalk integration. Currently at version 2.1.0, it is actively maintained and used to display build progress in the console. Compared to alternatives like webpack's built-in progress plugin or friendly-errors-webpack-plugin, it focuses solely on a minimalist, configurable progress bar with minimal overhead.
npm install progress-bar-webpack-pluginVerified import paths — ran on the pinned version, not inferred.
Shows how to require and instantiate the plugin with custom format, clearing disabled, and a custom summary callback.
Use dynamic import: const { default: ProgressBarPlugin } = await import('progress-bar-webpack-plugin'); or stick to CommonJS.Always use 'new ProgressBarPlugin()'.
Use 'customSummary' option with a function that receives build time in seconds.
Set the 'stream' option to process.stdout or a custom writable stream.
Upgrade to version 2.1.0 or later for full Webpack 5 compatibility.
Use 'new ProgressBarPlugin()' instead of 'ProgressBarPlugin()'. For example: plugins: [ new ProgressBarPlugin() ]
Run 'npm install --save-dev progress-bar-webpack-plugin' to install it.
Use: const ProgressBarPlugin = (await import('progress-bar-webpack-plugin')).default; then new ProgressBarPlugin()