diff options
Diffstat (limited to 'app/vite.config.ts')
-rw-r--r-- | app/vite.config.ts | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/app/vite.config.ts b/app/vite.config.ts index eefe408..61caf0e 100644 --- a/app/vite.config.ts +++ b/app/vite.config.ts @@ -1,7 +1,14 @@ import { purgeCss } from 'vite-plugin-tailwind-purgecss'; import { sveltekit } from '@sveltejs/kit/vite'; import { defineConfig } from 'vite'; +import { SvelteKitPWA } from '@vite-pwa/sveltekit'; export default defineConfig({ - plugins: [sveltekit(), purgeCss()] + plugins: [ + sveltekit(), + purgeCss(), + SvelteKitPWA({ + registerType: 'autoUpdate' + }) + ] }); |