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

Fix: serve generated assets

Open developit opened this issue 3 years ago • 1 comments

When karma-webpack was switched to generating files on disk, only commons.js and runtime.js were configured to be served. This serves the rest of the contents of the output directory.

This PR contains a:

  • [x] bugfix
  • [ ] new feature
  • [ ] code refactor
  • [ ] test update
  • [ ] typo fix
  • [ ] metadata update

Motivation / Use-Case

I am attempting to update from karma-webpack@4, but bundles/assets generated by loaders (like workerize-loader, the library I am updating) are being served as 404's. This happens because of the hard-coded list of output files.

developit avatar May 23 '22 21:05 developit

Thanks for the contribution! It looks like a few tests are failing unfortunately. I can take a look again if you get that fixed up.

codymikol avatar May 27 '22 16:05 codymikol

closed due to lack of feedback

codymikol avatar Oct 11 '22 16:10 codymikol