Skip to content
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

Respect the same SRI checks that HWP supports via webpack-subresource-integrity #57

Merged
merged 1 commit into from
Oct 24, 2017

Conversation

eliperelman
Copy link
Contributor

html-webpack-plugin respects crossorigin and integrity attributes set on chunks via the webpack-subresource-integrity plugin. This PR attempts to support this as well by adding those attributes to script and link tags which can have integrity attributes.

@jaketrent
Copy link
Owner

@eliperelman thanks for this.  looks good, but I know little about it. Is there a link to the HWP doc about this feature that you could point me to for some quick education pre-merge?

@eliperelman
Copy link
Contributor Author

Sure! The issue on HWP is:

jantimon/html-webpack-plugin#330

Which led to the creation of:

https://github.com/waysact/webpack-subresource-integrity

If you currently use the webpack-subresource-integrity plugin with HWT, no integrity data is added to assets.

@jaketrent
Copy link
Owner

Thanks for the link! Looks great.

@jaketrent jaketrent merged commit e9099d7 into jaketrent:master Oct 24, 2017
@eliperelman
Copy link
Contributor Author

Thank you for the merge! Note that I think the approach in #61 would be a good idea for avoiding PRs like this in the future. 👍

@jaketrent
Copy link
Owner

jaketrent commented Oct 24, 2017 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants