-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathvite.config.js
More file actions
33 lines (32 loc) · 882 Bytes
/
vite.config.js
File metadata and controls
33 lines (32 loc) · 882 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 { svelte } from '@sveltejs/vite-plugin-svelte'
import { VitePWA } from 'vite-plugin-pwa'
// https://vitejs.dev/config/
export default defineConfig({
base: '/',
plugins: [
svelte(),
VitePWA(
{
workbox: {
globPatterns: ['**/*.{js,css,html,svg,png,woff2}'],
},
registerType: "autoUpdate",
manifest: {
"background_color": "#151515",
"theme_color": "#212121",
"name": "WebPlot",
"short_name": "WebPlot",
"start_url": "/",
"display": "standalone",
"icons": [
{
"src": "icon512.png",
"sizes": "512x512",
"type": "image/png",
}
]
}
})
]
})