-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathvite.config.ts
More file actions
35 lines (34 loc) · 1.3 KB
/
Copy pathvite.config.ts
File metadata and controls
35 lines (34 loc) · 1.3 KB
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
import { defineConfig } from 'vite';
import { VitePWA } from 'vite-plugin-pwa';
export default defineConfig({
base: './',
plugins: [
VitePWA({
registerType: 'autoUpdate',
// We call registerSW() ourselves from src/app.ts (via the
// virtual:pwa-register module), so skip the plugin's own
// auto-injected registration script to avoid double-registering.
injectRegister: false,
includeAssets: ['icons/icon-192.png', 'icons/icon-512.png', 'icons/icon-maskable-512.png'],
manifest: {
name: 'My Dobble - Custom Photo Cards',
short_name: 'My Dobble',
description: 'Create your own Dobble (Spot It!) card deck from your own photos. Works offline.',
start_url: './',
scope: './',
display: 'standalone',
orientation: 'any',
background_color: '#4338ca',
theme_color: '#4338ca',
icons: [
{ src: 'icons/icon-192.png', sizes: '192x192', type: 'image/png', purpose: 'any' },
{ src: 'icons/icon-512.png', sizes: '512x512', type: 'image/png', purpose: 'any' },
{ src: 'icons/icon-maskable-512.png', sizes: '512x512', type: 'image/png', purpose: 'maskable' },
],
},
workbox: {
globPatterns: ['**/*.{js,css,html,png,svg,webmanifest}'],
},
}),
],
});