当前位置:首页 > IT技术 > 移动平台 > 正文

create-react-app 编译进度条配置
2021-09-17 16:26:07

安装:

yarn add webpackbar

修改webpack.config.js文件:

const WebpackBar = require('webpackbar')
plugins: [
  // ...
  new webpack.ProgressPlugin(),
  new WebpackBar()
]

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

 
 
 
 

本文摘自 :https://blog.51cto.com/x