-
Notifications
You must be signed in to change notification settings - Fork 0
/
vite.config.ts
42 lines (41 loc) · 1.05 KB
/
vite.config.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
import { sveltekit as SvelteKit } from '@sveltejs/kit/vite'
import { SvelteKitPWA } from '@vite-pwa/sveltekit'
import UnoCSS from 'unocss/vite'
import { defineConfig } from 'vite'
export default defineConfig({
plugins: [
UnoCSS(),
SvelteKit(),
SvelteKitPWA({
manifest: {
name: 'Marrec.io',
short_name: 'Marrec.io',
description: 'Website of Kevin Marrec',
theme_color: '#3B82F6',
background_color: '#111827',
icons: [
{
src: 'icons/pwa-192x192.png',
sizes: '192x192',
type: 'image/png',
},
{
src: 'icons/pwa-512x512.png',
sizes: '512x512',
type: 'image/png',
},
{
src: 'icons/pwa-512x512.png',
sizes: '512x512',
type: 'image/png',
purpose: 'maskable',
},
],
},
workbox: {
navigateFallback: '/404.html',
additionalManifestEntries: [{ url: '/404.html', revision: null }],
},
}),
],
})