-
Notifications
You must be signed in to change notification settings - Fork 4
/
vite.config.ts
55 lines (54 loc) · 1.3 KB
/
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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
import { defineConfig } from 'vite';
import { VitePWA } from 'vite-plugin-pwa';
import solidPlugin from 'vite-plugin-solid';
import pkg from './package.json';
export default defineConfig({
publicDir: 'public',
plugins: [
solidPlugin(),
VitePWA({
strategies: 'generateSW',
registerType: 'autoUpdate',
manifest: {
name: 'Kanttiinit',
short_name: 'Kanttiinit',
start_url: '.',
display: 'standalone',
background_color: '#f4f4f4',
theme_color: '#2B3138',
description: 'Student lunch effortlessly.',
lang: 'en-US',
orientation: 'any',
icons: [
{
src: 'logo.png',
sizes: '800x800',
type: 'image/png'
}
],
related_applications: [
{
platform: 'web',
url: 'https://kanttiinit.fi/'
},
{
platform: 'itunes',
url: 'https://itunes.apple.com/fi/app/kanttiinit/id1069903670?l=fi&mt=8'
}
]
}
})
],
define: {
'VERSION': JSON.stringify(pkg.version),
'PUBLIC_ASSET_PATH': JSON.stringify('/'),
'API_BASE': JSON.stringify('https://kitchen.kanttiinit.fi')
},
server: {
port: 8080,
hmr: false
},
build: {
target: 'es2015',
},
});