Skip to content

WorkboxBuildConfiguration ​

Interface @vite-pwa/workbox-build/config

Properties ​

PropertyTypeDefaultDescription
buildSWPartial<BuildSWOptions<T>>
cwd?stringprocess.cwd()Current working directory to load external configuration options.
generateSWPartial<GenerateSWOptions<T>>
injectManifestPartial<InjectManifestStrategyOptions>
mergeOptions?booleanfalseWhen path is specified, should merge inlined options and the configuration?

NOTE: inlined options will override external configuration options.
path?stringpath to load external configuration options:
- can be an absolute path
- can be a relative path, which will be resolved relative to cwd (or process.cwd() if cwd is not specified)
selfDestroying?SelfDestroyingOptions
strategyS

Released under the MIT License.