create-react-app 编译进度条配置

react

安装:

yarn add webpackbar

修改webpack.config.js文件:

const WebpackBar = require('webpackbar')

plugins: [

// ...

new webpack.ProgressPlugin(),

new WebpackBar()

]

webpack.ProgressPlugin() 是webpack内置插件,webpack.ProgressPlugin,WebpackBar用来显示编译时长

以上是 create-react-app 编译进度条配置 的全部内容, 来源链接: utcz.com/z/383982.html

回到顶部