-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathvite.config.js
More file actions
33 lines (32 loc) · 943 Bytes
/
vite.config.js
File metadata and controls
33 lines (32 loc) · 943 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
import { defineConfig } from 'vite'
import vue from '@vitejs/plugin-vue'
import { VitePWA } from 'vite-plugin-pwa'
export default defineConfig({
base: '/thoughts-app/',
plugins: [
vue(),
VitePWA({
registerType: 'autoUpdate', // сервис воркер будет обновляться автоматически
manifest: {
name: 'Thoughts App',
short_name: 'Thoughts',
start_url: '/thoughts-app/',
display: 'standalone', // чтобы выглядело как отдельное приложение
background_color: '#0d0d0d',
theme_color: '#0d0d0d',
icons: [
{
src: '/thoughts-app/icon-192.png',
sizes: '192x192',
type: 'image/png'
},
{
src: '/thoughts-app/icon-512.png',
sizes: '512x512',
type: 'image/png'
}
]
}
})
],
})