diff options
| author | Martin Kagamino Lehoux <martin@lehoux.net> | 2026-07-28 16:40:18 +0200 |
|---|---|---|
| committer | Martin Kagamino Lehoux <martin@lehoux.net> | 2026-07-28 16:40:18 +0200 |
| commit | bcffe57388430607a520f03a1326484d9897c37a (patch) | |
| tree | 521f1f50da07ec853d26405d6504074da3c52f9a /vite.config.ts | |
| parent | 4797b1c27ce3ef4ee27d8587fe800ef3dd28b9d5 (diff) | |
feat: oklch color palette and PWA install support
Diffstat (limited to 'vite.config.ts')
| -rw-r--r-- | vite.config.ts | 32 |
1 files changed, 31 insertions, 1 deletions
diff --git a/vite.config.ts b/vite.config.ts index cf88928..c7f36ce 100644 --- a/vite.config.ts +++ b/vite.config.ts @@ -1,8 +1,38 @@ import { sveltekit } from '@sveltejs/kit/vite'; +import { SvelteKitPWA } from '@vite-pwa/sveltekit'; import { defineConfig } from 'vitest/config'; export default defineConfig({ - plugins: [sveltekit()], + plugins: [ + sveltekit(), + SvelteKitPWA({ + registerType: 'autoUpdate', + workbox: { + globPatterns: ['**/*.{js,css,html,ico,png,svg}'], + }, + manifest: { + name: 'Home — Courses', + short_name: 'Courses', + description: 'Liste de courses intelligente', + theme_color: '#d97757', + background_color: '#f9f7f3', + display: 'standalone', + start_url: '/', + icons: [ + { + src: '/pwa-192x192.png', + sizes: '192x192', + type: 'image/png', + }, + { + src: '/pwa-512x512.png', + sizes: '512x512', + type: 'image/png', + }, + ], + }, + }), + ], test: { include: ['src/**/*.{test,spec}.{js,ts}'], }, |
