-
Notifications
You must be signed in to change notification settings - Fork 45
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
Cannot determine asset for chunk #106
Comments
Thanks for your bug report. Could you please turn this into a full test case by making a self-contained repository? I've tried making a test case based on the above but it doesn't trigger the warning. I have a hunch the problem is that webpack-fix-style-only-entries doesn't "fully" remove the JS file from the build. I can see in its source that it deletes the asset, but I think that's not enough. It might also have to remove any references to the assets from other places, in particular from the chunk map. Anyway, if there's something simple this plugin can do to work around it I'm happy to add that, but first I would need a working test case. |
I'm going to close this because without being able to reproduce it there's not much I can do. Please feel free to reopen with some more context, ideally a small repository that demonstrates the issue. |
I made a small repo that will reproduce this warning. |
@jasonrm fantastic, thanks! |
Also, make an effort to ensure our chunkAsset callback runs after callbacks registered by other plugins. Closes #106
A fix for this has been released in version 1.3.4. Thanks again for the bug report and the test case. |
Please forgive me if this was already reported, however, I believe my situation to be different.
This happens because I am extracting CSS styles from
style.js
usingmini-css-extract-plugin
and removing the now emptystyle.js
file usingwebpack-fix-style-only-entries
. Here is a sample Webpack configuration demonstrating the issue.I am using
webpack-subresource-integrity@1.3.2
The text was updated successfully, but these errors were encountered: