Skip to main content

compileSrc

First added

Workbox

About

When true (the default), the swSrc file will be compiled by webpack.

When false, compilation will not occur, and webpackCompilationPlugins can’t be used. Set to false if you want to inject the manifest into, e.g., a JSON file.

Default

true

Usage

new InjectManifest({
  compileSrc: false,
});