安装

  • npm i -D progress-bar-webpack-plugin

    配置

    ```javascript // /vue.config.js var ProgressBarPlugin = require(‘progress-bar-webpack-plugin’)

module.exports = { configureWebpack: { plugins: [new ProgressBarPlugin()] } } ```

打包

  • npm run build

image.png

附录