django-webpack-loader icon indicating copy to clipboard operation
django-webpack-loader copied to clipboard

Add SRI hashes to HTML output when they exist

Open crgwbr opened this issue 6 years ago • 2 comments

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

crgwbr avatar Jan 09 '19 16:01 crgwbr

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.

owais avatar Jan 17 '20 10:01 owais

SRI hashes were added in jazzband/webpack-bundle-tracker#59 with a different name (assets.*.integrity rather than chunks.*.sriHash).

andersk avatar Oct 28 '20 23:10 andersk

Closed per last comment.

fjsj avatar Nov 29 '23 14:11 fjsj