webpack4添加打包/启动进度条
npm install webpackbar || yarn add webpackbar
在 webpack.config.js 中添加:
首先,引用 webpackbar 插件
const WebpackBar = require('webpackbar');
然后查找 module.exports 中 return 中的 一级 plugins 变量 在里面添加
// 添加 进度条
new WebpackBar(),
完!