@canac/parcel-plugin-workbox

Workbox plugin for Parcel. Inspired by parcel-plugin-workbox by @dahnielson.

Usage no npm install needed!

<script type="module">
  import canacParcelPluginWorkbox from 'https://cdn.skypack.dev/@canac/parcel-plugin-workbox';
</script>

README

parcel-plugin-workbox

Workbox plugin for Parcel. Inspired by parcel-plugin-workbox by @dahnielson.

Install

Install using npm

npm install @canac/parcel-plugin-workbox --save-dev

Usage

Configure the options passed to Workbox's generateSW in the workbox property of your project's package.json file. For example:

{
  "dependencies": { ... },
  "workbox": {
    "importScripts": ["./worker.js"],
    "sourcemap": false
  }
}