- No dependencies
- Show only the elements you want
- Modify color for whole bar or for each element separately
- Modify size of the progress bar up to the maximum size available on the line
- Modify characters of the bar (complete and incomplete)
- Hide cursor during progression
- Play the default notification sound when compilation is complete. Very useful in watch mode. Currently, this feature is only available for Windows 10 users.
npm install -D colored-progress-bar-webpack-plugin
yarn add -D colored-progress-bar-webpack-plugin
Include the following in your Webpack config.
const ColoredProgressBar = require('colored-progress-bar-webpack-plugin');
plugins: [
new ColoredProgressBar()
]The progress bar is made up of 5 elements on 2 lines.
- Status : compilation status
- Bar : the bar itself
- Percent : percentage of progression
- Message : summary of the action the compiler performs
- Detail : action that the compiler performs
Define the elements to display (boolean)
showStatusshowBarshowPercentshowMessageshowDetail
Color of the entire progress bar (string)
colorAllif you set the color for the whole bar, it will override the elements colors
Color of each item separately (string)
colorStatuscolorBarcolorPercentcolorMessagecolorDetail
Accepts the following values:
blackredgreenyellowbluemagentacyandarkGraylightGraylightRedlightGreenlightYellowlightBluelightMagentalightCyanwhite
Number of characters of the progress bar (number)
widthif this exceeds the maximum size available on the line, this value will be automatically reduced
Define the characters used to represent the completed and uncompleted portion of the bar (string)
completeCharincompleteChar
Define if the detail text should be aligned with the bar (boolean)
alignDetailOnBar
Define if the cursor should be hidden during compilation (boolean)
hideCursor
Define if the default notification sound is played when compilation is complete (boolean)
notificationonly available for Windows 10 users
new ColoredProgressBar({
showStatus: true,
showBar: true,
showPercent: true,
showMessage: true,
showDetail: true,
colorAll: null,
colorStatus: 'green',
colorBar: 'lightCyan',
colorPercent: 'blue',
colorMessage: 'lightYellow',
colorDetail: 'lightMagenta',
width: 100,
completeChar: '█',
incompleteChar: '░',
alignDetailOnBar: true,
hideCursor: true,
notification: false,
})MIT


