-
-
Notifications
You must be signed in to change notification settings - Fork 383
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
integrity isn't added to assets in loadable-stats.json #563
Comments
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
@abnud1 i am seeing this issue as well. were you able to figure out why this happens?
Other Information: |
i have created #803 in attempt to fix this issue |
Published as a part of:
|
🐛 Bug Report
I'm having the same problem as this issue: #344
However a PR Was merged which solved this issue and in the past it worked, for some reason it now
doesn't work at all.
To Reproduce
Steps to reproduce the behavior:
1- install webpack-subresource-plugin and setup loadable components for SSR(webpack-plugin et all)
2- add the plugins in webpack config like this:
also add
crossOriginLoading: "anonymous"
towebpack.output
.3- build the bundle, in the generted loadable-stats.json you'll see no integrity attribute.
4- in the server bundle call
chunkExtractor.getScriptTags({ crossorigin: "anonymous" })
, you'll notice no integrity attributeExpected behavior
chunkExtractor.getScriptTags()
,chunkExtractor.getStyleTags()
,chunkExtractor.getLinkTags()
would set integrity attribute.npx envinfo --system --binaries --npmPackages @loadable/component,@loadable/server,@loadable/webpack-plugin,@loadable/babel-plugin --markdown --clipboard
output:Other Information:
webpack version: 4.43
loadable-components version: 5.12
webpack-subresource-plugin version: 1.4.0
The text was updated successfully, but these errors were encountered: