---
url: /api/symbols/unplugin-pwa-core/helpers/preparepwastrategy.md
---

# preparePWAStrategy

Function @unplugin-pwa/core/helpers

```ts
preparePWAStrategy(ctx: PWAPluginContext<B, 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.
