-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathvite.config.ts
41 lines (40 loc) · 1.11 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
import { sveltekit } from '@sveltejs/kit/vite';
import { SvelteKitPWA } from '@vite-pwa/sveltekit'
import { defineConfig } from 'vite';
export default defineConfig({
define: {
__DATE__: `'${new Date().toISOString()}'`,
__RELOAD_SW__: false,
'process.env.NODE_ENV': process.env.NODE_ENV === 'production' ? '"production"' : '"development"',
},
plugins: [
sveltekit(),
SvelteKitPWA(
{
pwaAssets: {
config: true
},
manifest: {
short_name: 'V2O App',
name: 'Osteopathy V2O App',
description: 'A Online Platform for making it easy for people to find and book osteopathy appointments online.',
theme_color: '#ffffff',
background_color: '#ffffff',
display: 'standalone',
lang: 'en',
orientation: 'portrait',
scope: '/',
},
// devOptions: {
// enabled: false,
// suppressWarnings: process.env.SUPPRESS_WARNING === 'true',
// type: 'module',
// navigateFallback: '/',
// },
// if you have shared info in svelte config file put in a separate module and use it also here
kit: {
includeVersionFile: true,
},
})
]
});