Closed hchokshi closed 3 years ago
Thanks, sounds like a regression from #122. Let me check first what happened to it.
@hchokshi I need to understand this better so that we can write a test case for it. Could you create a repository with a minimal reproduction? What's the plugin you were mentioning?
Hey @jscheid, here's the bare minimum to repro - https://github.com/hchokshi/webpack-sri-inline-repro
@hchokshi thanks for this. Aiming to release this in a new version later this week.
Released in v5.0.0-alpha.2
I have a project using webpack 5 and the latest versions of html-webpack-plugin and webpack-subresource-integrity. I also have a plugin that inlines scripts (e.g. webpack runtime chunk) into the generated HTML. This generates a
<script>
tag with no attributes, which causes webpack-subresource-integrity to throw when it checks the tag for an existing integrity attribute.