-
Notifications
You must be signed in to change notification settings - Fork 220
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
karma-webpack 5 fails to read files with a query parameter (e.g. font-awesome) #517
Comments
Thanks for opening an issue, I'll try and take a look at this sometime this weekend |
A temporary workaround for me is to modify this.controller.bundlesContent[webpackFileObj.name] = fs.readFileSync(
filePath.replace(/\?.*/, ""),
'utf-8'
); |
I have unfortunately proven that files can be named in this way so introducing the proposed change would be breaking for users in that situation 😞 I think this is potentially an outside issue related to It seems that this file is picked up from this line in the font-awesome project
It seems to me that as it is pulled in from a url, it should parse the file name as
|
It looks like in webpack 5
Does that solve this issue for you? |
Hey @codymikol thanks for looking into this. I've switched my project from Karma over to Jest, so this issue is no longer relevant for me. Nonetheless, if you look at my minimal example above, there is no |
uff. found a workaround. remove the default
or setting |
Expected Behavior
As with earlier karma-webpack versions, a CSS referencing a file with a cache breaker (?v=4.7.0) should work.
Actual Behavior
How Do We Reproduce?
Use this text as
karma.conf.js
Output:
The text was updated successfully, but these errors were encountered: