Workbox plugin for Parcel. Inspired by parcel-plugin-workbox by @dahnielson.
Install using npm
npm install @canac/parcel-plugin-workbox --save-dev
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
}
}