-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathvite.config.js
More file actions
43 lines (42 loc) · 1012 Bytes
/
vite.config.js
File metadata and controls
43 lines (42 loc) · 1012 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
34
35
36
37
38
39
40
41
42
43
import { defineConfig } from 'vite'
import { svelte } from '@sveltejs/vite-plugin-svelte'
import { viteSingleFile } from 'vite-plugin-singlefile'
import { VitePWA } from 'vite-plugin-pwa'
export default defineConfig({
base: '/svelteflowy/',
plugins: [
svelte(),
viteSingleFile(),
VitePWA({
registerType: 'autoUpdate',
includeAssets: ['icon.svg'],
manifest: {
name: 'SvelteFlowy',
short_name: 'SvelteFlowy',
description: 'An outliner app inspired by Workflowy',
theme_color: '#49baf2',
background_color: '#ffffff',
display: 'standalone',
start_url: '/',
icons: [
{
src: 'icon.svg',
sizes: 'any',
type: 'image/svg+xml',
purpose: 'any maskable'
}
]
},
workbox: {
globPatterns: ['**/*.{js,css,html,svg,woff,woff2}']
}
})
],
server: {
port: 5173,
open: true
},
build: {
outDir: 'dist'
}
})