From 532dd754ed96b3dae99f96c1a82ae9999c1aab5a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Felix=20Baumg=C3=A4rtner?= Date: Tue, 16 Jan 2024 08:52:45 +0100 Subject: [PATCH] added pwa plugin --- src/routes/+layout.js | 1 + vite.config.js | 3 ++- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/src/routes/+layout.js b/src/routes/+layout.js index 09a24d3..1acb5fb 100644 --- a/src/routes/+layout.js +++ b/src/routes/+layout.js @@ -1,2 +1,3 @@ export const ssr = false; +export const csr = true; export const prerender = true; \ No newline at end of file diff --git a/vite.config.js b/vite.config.js index eefe408..6926b6b 100644 --- a/vite.config.js +++ b/vite.config.js @@ -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()] });