0.0.1 • Published 5 years ago

@atomico/rollup-plugin-workbox v0.0.1

Weekly downloads
-
License
ISC
Repository
github
Last release
5 years ago

@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

0.0.1

5 years ago

0.0.0

5 years ago