-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathvite.config.ts
More file actions
45 lines (43 loc) · 880 Bytes
/
vite.config.ts
File metadata and controls
45 lines (43 loc) · 880 Bytes
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
43
44
45
import { sveltekit } from '@sveltejs/kit/vite';
import { defineConfig } from 'vite';
import { SvelteKitPWA } from '@vite-pwa/sveltekit';
export default defineConfig({
plugins: [
sveltekit(),
SvelteKitPWA({
base: '/porcupine/',
buildBase: '/',
registerType: 'autoUpdate',
strategies: 'generateSW',
manifest: {
theme_color: '#000000',
name: 'Porcupine',
short_name: 'Porcupine',
description: 'A fun web toy',
icons: [
{
src: 'icons-192.png',
type: 'image/png',
sizes: '192x192',
purpose: 'maskable'
},
{
src: 'icons-256.png',
type: 'image/png',
sizes: '256x256'
},
{
src: 'icons-512.png',
type: 'image/png',
sizes: '512x512'
}
],
background_color: '#000000',
display: 'standalone'
},
workbox: {
sourcemap: true
}
})
]
});