-
Notifications
You must be signed in to change notification settings - Fork 75
/
Copy pathvite.config.ts
41 lines (40 loc) · 955 Bytes
/
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
import eslint from 'vite-plugin-eslint'
import { VitePWA } from 'vite-plugin-pwa'
export default {
base: './',
plugins: [
eslint(),
VitePWA({
registerType: 'autoUpdate',
injectRegister: 'auto',
manifest: {
short_name: 'Serial Terminal',
name: 'Serial Terminal',
icons: [
{
src: 'images/icons-1024.png',
type: 'image/png',
sizes: '1024x1024',
purpose: 'any maskable'
},
{
src: 'images/icons-192.png',
type: 'image/png',
sizes: '192x192',
purpose: 'any maskable'
},
{
src: 'images/icons-512.png',
type: 'image/png',
sizes: '512x512',
purpose: 'any maskable'
}
],
start_url: './?source=pwa',
display: 'standalone',
scope: './',
id: './'
},
})
]
}