You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

42 lines
1.2 KiB

3 months ago
  1. progress-webpack-plugin [![npm version](https://badge.fury.io/js/progress-webpack-plugin.svg)](https://badge.fury.io/js/progress-webpack-plugin)
  2. ===
  3. [![NPM](https://nodei.co/npm/progress-webpack-plugin.png?downloads=true&downloadRank=true&stars=true)](https://nodei.co/npm/progress-webpack-plugin/)
  4. inspired by [progress-bar-webpack-plugin](https://github.com/clessg/progress-bar-webpack-plugin),simple Webpack plugin that display nice progress when build
  5. Install
  6. ===
  7. ```javascript
  8. npm install progress-webpack-plugin --save--dev
  9. ```
  10. Usage
  11. ===
  12. add plugin in your webpack.config.js
  13. ```javascript
  14. var ProgressPlugin = require('progress-webpack-plugin')
  15. module.exports = {
  16. ...
  17. plugins:[
  18. new ProgressPlugin(true)
  19. ]
  20. }
  21. ```
  22. Plugin Options
  23. ===
  24. - **minimal**: enable minimal mode or not,default value is false
  25. - **identifier**: identifier of webpack bundle
  26. - **onStart**: callback function when webpack bundler started
  27. - **onFinish**: callback function when webpack bundler finished
  28. - **onProgress**: callback function when webpack bundler running
  29. - **clear**: whether clear console when webpack bundler finished
  30. ## License
  31. [MIT License](http://en.wikipedia.org/wiki/MIT_License)