Back to Snowpack

Workbox

docs/guides/workbox.md

3.8.5713 B
Original Source
<div class="stub"> This article is a stub, you can help expand it into <a href="https://diataxis.fr/how-to-guides/">how-to guide format</a> </div>

The Workbox CLI integrates well with Snowpack. Run the wizard to bootstrap your first configuration file, and then run workbox generateSW to generate your service worker.

Remember that Workbox expects to be run every time you deploy, as a part of a production build process. If you don't have one yet, create package.json "deploy" and/or "build" scripts to automate your production build process.