aboutsummaryrefslogtreecommitdiffstats
path: root/app/vite.config.ts
diff options
context:
space:
mode:
authorMatt Strapp <matt@mattstrapp.net>2023-09-13 16:04:12 -0500
committerMatt Strapp <matt@mattstrapp.net>2023-09-14 13:26:23 -0500
commit319a10b9a106e768ea2d3fb6d7134817911208ce (patch)
treed4d71c83665ff583071f387309980b6cdb893d88 /app/vite.config.ts
parentInitial commit (diff)
downloadtrinkets-319a10b9a106e768ea2d3fb6d7134817911208ce.tar
trinkets-319a10b9a106e768ea2d3fb6d7134817911208ce.tar.gz
trinkets-319a10b9a106e768ea2d3fb6d7134817911208ce.tar.bz2
trinkets-319a10b9a106e768ea2d3fb6d7134817911208ce.tar.lz
trinkets-319a10b9a106e768ea2d3fb6d7134817911208ce.tar.xz
trinkets-319a10b9a106e768ea2d3fb6d7134817911208ce.tar.zst
trinkets-319a10b9a106e768ea2d3fb6d7134817911208ce.zip
Add basic PWA support
TODO: draw the rest of the owl
Diffstat (limited to 'app/vite.config.ts')
-rw-r--r--app/vite.config.ts9
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'
+ })
+ ]
});