Webpack plugin providing Subresource Integrity (SRI) support for Ember applications built with Embroider. At version 0.2.4, this package addresses limitations of both ember-cli-sri (which does not support Embroider) and the generic webpack-subresource-integrity plugin (which cannot handle non-webpack-managed assets and the Embroider-generated index.html). It injects integrity attributes into link and script elements while handling edge cases like empty rootURL/publicPath, inline scripts, and external resources. Release cadence is sporadic with bug fixes and enhancements. Key differentiator: native Embroider integration without requiring additional addons.
npm install webpack-subresource-integrity-embroiderNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Adds the webpack-subresource-integrity-embroider plugin to an Embroider-based Ember app's webpack config in ember-cli-build.js.
Use ember-cli-sri instead for classic Ember builds.
Either provide integrity hashes for all external resources or disable the check by setting `hashExternal: false` in plugin options (if supported). Check documentation for options.
Use `const SubresourceIntegrityPlugin = require('webpack-subresource-integrity-embroider');`Upgrade to >=0.2.4.
Upgrade to >=0.2.2 or avoid inline scripts.
Run `npm install webpack-subresource-integrity-embroider --save-dev` and ensure require path matches.
Upgrade to >=0.1.2.
Ensure webpack is installed as a peer dependency and the plugin is added to webpack config correctly.
Add integrity attribute to the resource or set `hashExternal: false` in plugin options (if available).