-
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
The output.filename
should end with .js
.
#334
The output.filename
should end with .js
.
#334
Comments
if |
Yes but the plugin constructor of |
@sechel Could you post your karma and webpack config files? |
Imho @sechel is right - Is there any reason why it does not use an extension here? |
There are certain issues with your current config
https://github.com/webpack-contrib/karma-webpack/blob/1ac16eaa7b11ee154a2127d4f03cbfd1a81533f6/src/karma-webpack.js#L65
For instance the folks over at
html-webpack-plugin
filter all assets that do not end with.js
, thus all.html
files emitted stay empty when built alongside the test bundle using karma webpack.Another thing is that
webpack-dev-middleware
doesn't recognize the mime type, e.g, when using atypescript
.ts
input file and this leads to other problems in browsers. One could solve this with a simplemime: { 'text/javascript': ['ts'] }
but this seems hacky to me.Anyway, I wanted to drop a line and see if we could get a discussion running on the matters.
Greetings
Stefan
The text was updated successfully, but these errors were encountered: