From bcffe57388430607a520f03a1326484d9897c37a Mon Sep 17 00:00:00 2001 From: Martin Kagamino Lehoux Date: Tue, 28 Jul 2026 16:40:18 +0200 Subject: feat: oklch color palette and PWA install support --- vite.config.ts | 32 +++++++++++++++++++++++++++++++- 1 file changed, 31 insertions(+), 1 deletion(-) (limited to 'vite.config.ts') 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}'], }, -- cgit v1.3