Webpack progress using node.js API

后端 未结 3 1871
[愿得一人]
[愿得一人] 2021-02-05 04:21

Is there currently a way to access webpack\'s progress while using the node.js API? I\'m familiar with the --progress flag using the CLI.

3条回答
  •  暖寄归人
    2021-02-05 04:43

    https://www.npmjs.com/package/progress-bar-webpack-plugin this plugin leverages node-progress.

      new ProgressBarPlugin({
        format: '  build [:bar] :percent (:elapsed seconds)',
        clear: false, 
        width: 60
      })
    

提交回复
热议问题