Back to Serwist

swSrc (InjectManifest)

docs-next-configuring-sw-src.md

latest318 B
Original Source

swSrc (InjectManifest)

First added

Workbox

About

The path to the service worker file that will be read during the build process, relative to the current working directory.

Usage

build.js

await injectManifest({
  swSrc: "app/sw.ts",
  swDest: "dist/sw.js",
  globDirectory: "dist/static",
});