Skip to main content

globIgnores

First added

Workbox

Default

["**/node_modules/**/*"]

About

A set of patterns matching files to always exclude when generating the precache manifest. For more information, see the definition of ignore in glob’s documentation.

Usage

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