0.3.4 • Published 4 years ago

parcel-plugin-subresource-integrity v0.3.4

Weekly downloads
153
License
MIT
Repository
-
Last release
4 years ago

parcel-plugin-subresource-integrity

Adds Subresource Integrity attributes to any CSS and JS bundled files referenced from your Parcel Bundler entry HTML asset (index.html).

Usage

No configuration is needed. Install the package using yarn or npm and build using Parcel.

The integrity attribute will be added to any asset referenced from a HTML parcel entry point. Specifically, the plugin scans the output HTML (typically your index.html) and inserts the integrity attribute on any link or script tags that reference local assets.

If you're using the publicURL option, the crossorigin="anonymous" attribute is also added.

Integrity attributes are only added in production (i.e. when running parcel build) as it tends to get out of sync easily in watch mode. By default, the SHA-384 hash algorithm will be used.

0.3.4

4 years ago

0.3.3

4 years ago

0.3.2

4 years ago

0.3.1

5 years ago

0.3.0

5 years ago

0.2.0

5 years ago

0.1.0

5 years ago