webpack-progress-bar
TypeScript icon, indicating that this package has built-in type declarations

1.2.1 • Public • Published

webpack-progress-bar

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 
})
 

Package Sidebar

Install

npm i webpack-progress-bar

Weekly Downloads

147

Version

1.2.1

License

MIT

Unpacked Size

29 kB

Total Files

6

Last publish

Collaborators

  • whj17312642775