Skip to content

InjectPartial ​

Interface workbox-build

Properties ​

PropertyTypeDefaultDescription
bundlerLogLevel?BundlerLogLevel{ rolldown: 'warn', vite: 'warn' }Granular control for underlying bundler logLevel.

If you set logLevel to 'silent then the underline bundler logLevel will also be silent.
injectionPoint?string | false | null"self.__WB_MANIFEST"The string to find inside of the swSrc file. Once found, it will be replaced by the generated precache manifest. Set it to null or false to disable injection point.

NOTE: calling injectManifest directly with injectionPoint set to null or false will fail.
logLevel?"info" | "silent"'info'
swSrcstringThe path and filename of the service worker file that will be read during the build process, relative to the current working directory.

Released under the MIT License.