added pwa plugin

This commit is contained in:
Felix Baumgärtner 2024-01-16 08:52:45 +01:00
parent 14d8956be9
commit 532dd754ed
2 changed files with 3 additions and 1 deletions

View File

@ -1,2 +1,3 @@
export const ssr = false;
export const csr = true;
export const prerender = true;

View File

@ -1,7 +1,8 @@
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()]
});