-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathvite.config.ts
More file actions
46 lines (45 loc) · 1.12 KB
/
vite.config.ts
File metadata and controls
46 lines (45 loc) · 1.12 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
36
37
38
39
40
41
42
43
44
45
46
import { defineConfig } from 'vite'
import react from '@vitejs/plugin-react'
import { VitePWA } from 'vite-plugin-pwa';
export default defineConfig({
base: '/binarytimer/',
plugins: [react(),
VitePWA({
registerType: 'autoUpdate',
devOptions: {
enabled: true
},
workbox: {
globPatterns: ['**/*.{js,css,html,ico,png,svg,mp3}'],
},
manifest: {
name: 'Binary Timer',
short_name: 'Binary Timer',
description: 'Binary Timer Countdown - A Unique Way to Track Time in Binary!',
theme_color: '#000',
background_color: '#fff',
icons: [
{
src: 'favicon.svg',
sizes: '512x512',
type: 'image/svg+xml',
},
],
screenshots: [
{
src: 'screenshot-wide.png',
sizes: '1280x720',
type: 'image/png',
form_factor: 'wide'
},
{
src: 'screenshot-narrow.png',
sizes: '360x640',
type: 'image/png',
form_factor: 'narrow'
},
]
},
}),
],
})