0.0.1 • Published 5 years ago
@atomico/rollup-plugin-workbox v0.0.1
@atomico/rollup-plugin-workbox
Allows the execution of the workbox once the bundle is created.
import workbox from "@atomicojs/rollup-plugin-workbox";
export default {
input: /*...*/,
output: /*...*/,
plugins: [
workbox({
globDirectory: "dist/",
globPatterns: ["**/*.{html,json,js,css}"],
swDest: "dist/sw.js"
})
]
};
To complete the workbox configuration you can see the following source