Skip to main content

disable

First added

8.2.0

Default

false

About

Whether Serwist should be disabled.

Usage

export default defineConfig({
  plugins: [
    // Other plugins...
    serwist({
      disable: true,
      swSrc: "src/sw.ts",
      swDest: "sw.js",
      globDirectory: "dist",
      injectionPoint: "self.__SW_MANIFEST",
      rollupFormat: "iife",
    }),
  ],
});