Skip to content

preparePWAStrategy ​

Function @unplugin-pwa/vite/helpers
ts
preparePWAStrategy(ctx: VitePWAPluginContext<ViteBundler, UserStrategy, T>, cwd: string, outDir: string, immutableAssets: string): Promise<void>

Configures the PWA strategy at the resolved PWA options.

Parameters ​

  • ctx – The PWA context.

  • cwd – The current working directory.

  • outDir – The output directory.

  • immutableAssets – The immutable assets directory.

Released under the MIT License.