Back to Serwist

swDest (InjectManifest)

docs-webpack-plugin-configuring-sw-dest.md

latest357 B
Original Source

swDest (InjectManifest)

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

build.js

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