Skip to content

PWABuildDevContext ​

Interface @unplugin-pwa/core/context-types

Properties ​

PropertyTypeDefaultDescription
buildSW(options: Partial<BuildSWType<B, T>>) => Promise<BuildWithSourcesResult>
generateSW(options: Partial<BuildGenerateSWOptions<T>>) => Promise<BuildResult>
injectManifest(options: Partial<InjectManifestStrategyOptions>) => Promise<BuildResult>
options{ globDirectory: string; hmrEntryPointGenerated: boolean; mapSWSourcemapFile?: (url: string) => string | undefined; navigateFallbackAllowlist?: RegExp[]; registerSWGenerated: boolean; registerVirtualSWGenerated: boolean; swAssetKeys: Set<string>; swAssetsPaths: Map<string, string>; swGenerated: boolean; swName: string; swNames: DevSWNames; swType: WorkerType; tempFolder: string }
selfDestroyingSW(options: SelfDestroyingOptions) => Promise<boolean>

Released under the MIT License.