Package Exports
- rollup-plugin-workbox
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (rollup-plugin-workbox) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
rollup-plugin-workbox
Rollup plugin that builds a service worker with workbox as part of your rollup build
Usage
workbox (the rollup plugin function) takes two objects as arguments, the first is an options object, the second is the workbox config, like you would use with workbox cli. You can choose to specify the workbox config directly in your rollup.config.js, or require it from your workbox-config.js.
import workbox from 'rollup-plugin-workbox'
const input = /*...*/
const output = /*...*/
export default {
input,
output,
plugins: [
workbox({ injectManifest }, require('./workbox-config')),
],
}