-
-
Notifications
You must be signed in to change notification settings - Fork 10
/
Copy pathvite.config.ts
39 lines (38 loc) · 904 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
import { defineConfig } from 'vite';
import solidPlugin from 'vite-plugin-solid';
import { VitePWA } from 'vite-plugin-pwa'
import wasm from "vite-plugin-wasm";
export default defineConfig({
plugins: [
wasm(),
solidPlugin(),
VitePWA({
registerType: 'autoUpdate',
workbox: {
globPatterns: ['**/*.{js,wasm,css,html,svg}'],
navigateFallbackDenylist: [/^\/api/],
},
manifest: {
'short_name': 'Note Mark',
'icons': [
{
'src': '/icon.svg',
'type': 'image/svg+xml',
'sizes': '150x150'
}
],
'start_url': '.',
'display': 'standalone',
'scope': '/',
'theme_color': '#2a76b7',
'description': 'Lighting Fast & Minimal Markdown Note Taking App'
},
}),
],
server: {
port: 3000,
},
build: {
target: 'esnext',
},
});