Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/rwv/workbox-add-integrity

📦 A workbox plugin that add integrity to workbox precache manifest.
https://github.com/rwv/workbox-add-integrity

integrity manifest subresource-integrity workbox

Last synced: about 2 months ago
JSON representation

📦 A workbox plugin that add integrity to workbox precache manifest.

Awesome Lists containing this project

README

        

# 📦 workbox-add-integrity
A workbox plugin that add integrity to workbox precache manifest.

[![GitHub Workflow Status](https://img.shields.io/github/actions/workflow/status/rwv/workbox-add-integrity/build.yml)](https://github.com/rwv/workbox-add-integrity/actions/workflows/build.yml)
[![Codecov Coverage](https://img.shields.io/codecov/c/github/rwv/workbox-add-integrity)](https://app.codecov.io/github/rwv/workbox-add-integrity)
[![npm](https://img.shields.io/npm/v/workbox-add-integrity)](https://www.npmjs.com/package/workbox-add-integrity)
![NPM](https://img.shields.io/npm/l/workbox-add-integrity)

## Usage

``` bash
npm install workbox-add-integrity
```

``` ts
import addIntegrity from "workbox-add-integrity";
import { injectManifest } from "workbox-build";

const addIntegrityOptions = {
folder: "dist",
}

injectManifest({
manifestTransforms: [addIntegrity(addIntegrityOptions)],
});
```

## License

MIT