diff options
author | Matt Strapp <matt@mattstrapp.net> | 2023-09-13 16:04:12 -0500 |
---|---|---|
committer | Matt Strapp <matt@mattstrapp.net> | 2023-09-14 13:26:23 -0500 |
commit | 319a10b9a106e768ea2d3fb6d7134817911208ce (patch) | |
tree | d4d71c83665ff583071f387309980b6cdb893d88 /app/vite.config.ts | |
parent | Initial commit (diff) | |
download | trinkets-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.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' + }) + ] }); |