-
Notifications
You must be signed in to change notification settings - Fork 222
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
Outputs can have multiple assets #355
Comments
I see, would you mind trying to send PR to fix this? Checking for an |
cc @rynclark :) |
Ill take a look later!
…On Fri, 7 Sep 2018 at 20:05, Michael Ciniawsky ***@***.***> wrote:
cc @rynclark <https://github.com/rynclark> :)
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#355 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AHjhvalpW0ChNj3jAyNuKZVUjXD7qF-oks5uYsN_gaJpZM4WfFnN>
.
|
External sourcemaps currently don't seem work with |
This also happens if a js file imports a css file. Possibly, only when using the extract-text-webpack-plugin. |
fyi, also seeing this with 4.0.0 rc2:
|
+1 I use vue and mini-css-extract-plugin
and this.outputs is:
|
Please check PR #357 |
Some regression or something happened with this... With 3.0.5, test runs now do complete but some craziness goes on with multiple outputs. If you have the sourcemaps loader enabled, for example, the resulting JS has two different sourcemaps so they fail to load correctly in chrome. Installing 3.0.0 makes it work again, so we've definitely introduced a bug somewhere. foo;
// sourceMap;url=...
// sourceMap:url=... This is the kind of thing we end up with. |
Here with version
If I downgrade to |
The same thing happened here with version
|
Does |
No, I'm still seeing this #355 (comment) with rc3. |
@thijstriemstra : Can you use This issue seems only partially fixed |
@matthieu-foucault resulting {
"assetsByChunkName": {
"videojs.record": [
"css/videojs.record.min.css",
"videojs.record.min.js",
"videojs.record.min.js.map"
]
}
} |
@thijstriemstra: I finally found some time to look into this, using your project ( |
Similar to #350.
If an input has multiple output assets, an error will be thrown as the path will be an array rather than string.
This is because
assetsByChunkName
entries can be arrays:https://webpack.js.org/api/stats/
But in karma webpack, we assume it is always a string:
https://github.com/webpack-contrib/karma-webpack/blob/d42c5418d93508c94d40031c42ca7107dd6f1a73/src/karma-webpack.js#L174
Using the source maps loader will cause this error as one js file will produce a map and a js asset
The text was updated successfully, but these errors were encountered: