unjs / webpackbar

Elegant ProgressBar and Profiler for Webpack 3 , 4 and 5
MIT License
2.07k stars 66 forks source link

How to use webpackbar to monitor the total compilation progress when exporting multiple configurations? #98

Closed Hongbusi closed 2 years ago

Hongbusi commented 2 years ago

Problem: How to use webpackbar to monitor the total compilation progress when exporting multiple configurations?

module.exports = [
  {
    output: {
      filename: './dist-amd.js',
      libraryTarget: 'amd',
    },
    name: 'amd',
    entry: './app.js',
    mode: 'production',
  },
  {
    output: {
      filename: './dist-commonjs.js',
      libraryTarget: 'commonjs',
    },
    name: 'commonjs',
    entry: './app.js',
    mode: 'production',
  },
];

Thank you!

plrthink commented 2 years ago

Can you share how do you solve this?