webpack-progress-bar
v1.2.1
Published
webpack-progress-bar
Downloads
423
Maintainers
Readme
webpack-progress-bar
安装 install
npm i webpack-progress-bar -D
yarn add webpack-progress-bar -D
使用 use
const WebpackProgressBar = require('webpack-progress-bar')
plugins: [
new WebpackProgressBar()
]
选项 options
// default options
new WebpackProgressBar({
incomplete: {
// 'black', 'red', 'green', 'yellow', 'blue', 'magenta', 'cyan', 'white'
// '黑色','红色','绿色','黄色','蓝色','品红','青色','白色'
bg: 'white',
content: ' '
},
complete: {
bg: 'green',
content: ' '
},
width: 25, // Control progress bar width. 控制进度条宽度
clear: true, // Clear the progress bar after compilation is complete.编译完成后清除进度条。
total: 100
})