v5.0.0
No changes compared to v5.0.0-rc.1.
Changes compared to v1.5.2:
BREAKING CHANGES
(See migrating from v1 to v5.)
- Drop compatibility with Webpack < 5.12.0.
- Drop compatibility with Node < 10.
- Drop compatibility with html-webpack-plugin < 5.0.0-beta.1.
- Drop default export, new named export
SubresourceIntegrityPlugin. - When integrity for an asset cannot be determined this now emits an error. Previously, a warning was emitted.
- Option
enablednow defaults to"auto", which enables the plugin in all Webpack modes except fordevelopment. Previously, the plugin was disabled by default in all modes.
Other Changes
- Compatibility with html-webpack-plugin 5 and new Webpack 5 asset processing pipeline.
- Option
hashFuncNamesnow has a default:["sha384"]. - All code has been rewritten in TypeScript. We now include TypeScript type definitions inside the package.
- No longer imports webpack (#150)
- Warn when using dangerous filename hashes (#162)