yarn webpackbar 3.0.0

latest releases: 5.0.2, 5.0.1, 5.0.0...
5 years ago

We are really excited to see notable projects including Next.js, Razzle and Vuepress are using Webpackbar 😍 Until now, Webpackbar was mostly a fancy wrapper over Webpack ProgressPlugin. With V3 a major rewrite decoupled all display stuff into Reporters. Built-in supported ones are basic, fancy, profile and stats. But nothing stops you from adding your own. We also carefully studied and inspected Webpack's behavior to make everything faster and more stable.

New Features

  • Custom Reporters Support
  • Automatically pause Consola logs during build to prevent glitches
  • Stats reporter
  • Watch hook

Enhancenments

  • Call progress hook on 100%
  • Cleanup all webpack references after build to prevent any memory leak
  • Rewrite log-update for more stability and performance.
  • Handle compile errors for styling
  • Siginificant stability improvements
  • Cleaner source-code

Breaking changes

  • Webpackbar no longer clears screen. If you need to preserve old behaviour, use reporter option:
new Webpackbar({
  reporter: {
    allDone() { /* clear screen */ }
  }
})
  • stream option no longer supported. process.stderr is being used.

  • minimal option deprecated in favor of reporter options. By default env will be detected and basic fallback will be used for CI and Tests.

  • compiledIn option deprecated. Both Fancy and Basic show it in a better way.

  • done callback is deprecated. You can use reporter.allDone hook.

Don't miss a new webpackbar release

NewReleases is sending notifications on new releases.