karma-webpack icon indicating copy to clipboard operation
karma-webpack copied to clipboard

karma-webpack 5.0 No longer notified of compilation starting

Open Roaders opened this issue 4 years ago • 1 comments
trafficstars

  • Operating System: windows
  • Node Version: 14
  • NPM Version: 6
  • webpack Version: 5
  • karma-webpack Version: 5

Expected Behavior

When watching tests and a change is made we should be notified that a new build is starting. This used to take the form:

[wdm] Compiling...

Actual Behavior

No notification is posted

This seems to be a side effect of removing Webpack Dev Middleware but it is a major pain for us. The webpack builds are up to a minute. This feels so much longer with no indication that a build has actually started.

Roaders avatar Jul 15 '21 17:07 Roaders

You could re-implement this with

new webpack.ProgressPlugin((percent, message) => {
  if (percent <= 0) {
    console.info('webpack starting')
  }
})

@ryanclark is this something we should include by default?

AprilArcus avatar Aug 23 '21 05:08 AprilArcus

As karma is now deprecated and coming up on EOL, we are no longer planning on any significant enhancements to this project and are instead going to focus on security updates, stability, and a migration path forward as karma's lifecycle comes to an end.

Thank you for supporting and using this project!

codymikol avatar Oct 22 '23 00:10 codymikol