-
Notifications
You must be signed in to change notification settings - Fork 343
Added support for Subresource Integrity #315
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
Conversation
self.compile_bundles('webpack.config.integrity.js') | ||
|
||
loader = get_loader(DEFAULT_CONFIG) | ||
with patch.dict(loader.config, {'INTEGRITY': True}): |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please add another test that uses a loader.config
without any 'INTEGRITY'
key. It should work as 'INTEGRITY': False
. This will ensure backwards compatibility.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Added test_integrity_missing_config
:
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks, PR looks great, but I think we need some changes to keep backwards compatibility on integrity config.
glad to contribute:
|
Thanks @thejoeejoee . I made a small fix at 6a5a880 and merged. |
INTEGRITY
configuration optionintegrity: true
configuration for the bundle tracker is needed