Back to Serwist

injectionPoint (InjectManifest)

docs-build-configuring-injection-point.md

latest349 B
Original Source

injectionPoint (InjectManifest)

First added

Workbox

About

The string to find inside of the swSrc file. Once found, it will be replaced by the generated precache manifest.

Usage

build.js

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