-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathvite.config.js
45 lines (44 loc) · 1.08 KB
/
vite.config.js
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 { defineConfig } from 'vite'
import reactRefresh from '@vitejs/plugin-react-refresh'
import { VitePWA } from 'vite-plugin-pwa'
// https://vitejs.dev/config/
export default defineConfig({
plugins: [
reactRefresh(),
VitePWA({
strategies: 'injectManifest',
injectRegister: false,
injectManifest: {
swSrc: './src/sw.js',
swDest: './dist/sw.js'
},
manifest: {
background_color: '#1A202C',
description: 'The fastest way to choose a start player.',
display: 'standalone',
icons: [
{
sizes: '1024x1024',
src: 'favicon.png',
type: 'image/x-icon'
},
{
sizes: '192x192',
src: 'logo192.png',
type: 'image/png'
},
{
purpose: 'any maskable',
sizes: '512x512',
src: 'logo512.png',
type: 'image/png'
}
],
name: 'BG Quickstart',
short_name: 'bgqs',
start_url: '/',
theme_color: '#1A202C'
}
})
]
})