安裝:
yarn add webpackbar
修改webpack.config.js文件:
const WebpackBar = require('webpackbar')
plugins: [
// ...
new webpack.ProgressPlugin(),
new WebpackBar()
]
webpack.ProgressPlugin() 是webpack內(nèi)置插件,webpack.ProgressPlugin,WebpackBar用來(lái)顯示編譯時(shí)長(zhǎng)
?
?
?
?
本文摘自 :https://blog.51cto.com/x