---
url: /api/symbols/workbox-build/utils/resolve-sw-names/resolveswnames.md
---

# resolveSWNames

Function @vite-pwa/workbox-build/utils/resolve-sw-names

```ts
resolveSWNames(swDest: string, swSrc: string, generateSW: boolean): { classicSWChunkName: string; classicSWDest: string; classicSWDestPath: string; classicSWSrc: string; moduleSWChunkName: string; moduleSWDest: string; moduleSWDestPath: string; moduleSWSrc: string; newSWSrc: string; prefix: string; swChunkName: string; swDest: string; swDestPath: string }
```

This method resolves the names for the SW source and destination files, as well as the globIgnores to exclude the
relevant files from the precache manifest.

### Parameters

* `swDest` – The service worker destination.

* `swSrc` – The service worker source file path.

* `generateSW` – if using generateSW strategy (or buildSW)
