Skip to main content

swDest (InjectManifest only)

First added

Workbox

About

The path and filename of the service worker file that will be created by the build process, relative to the current working directory. It must end in “.js”.

Usage

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