From 319a10b9a106e768ea2d3fb6d7134817911208ce Mon Sep 17 00:00:00 2001 From: Matt Strapp Date: Wed, 13 Sep 2023 16:04:12 -0500 Subject: Add basic PWA support TODO: draw the rest of the owl --- app/vite.config.ts | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'app/vite.config.ts') 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' + }) + ] }); -- cgit v1.2.3