Back to Serwist

globIgnores

docs-vite-configuring-glob-ignores.md

latest486 B
Original Source

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

build.js

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