django-webpack-loader
django-webpack-loader copied to clipboard
Add SRI hashes to HTML output when they exist
When an SRI hash exists in the webpack-stats.json file, use them to set the
integrity attribute in the HTML outputted by the render_bundle template tag.
See also: owais/webpack-bundle-tracker#43
Thanks. If anyone wants to pick up https://github.com/owais/webpack-bundle-tracker/pull/43 and finish it, I think we can merge this.
SRI hashes were added in jazzband/webpack-bundle-tracker#59 with a different name (assets.*.integrity rather than chunks.*.sriHash).
Closed per last comment.