-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathvite.config.js
71 lines (69 loc) · 1.64 KB
/
vite.config.js
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
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
import { defineConfig, loadEnv } from 'vite';
import react from '@vitejs/plugin-react';
import { VitePWA } from 'vite-plugin-pwa';
const manifest = {
display: 'standalone',
display_override: ['window-controls-overlay'],
lang: 'en-US',
name: 'Emotion Link',
short_name: 'Emotion Link',
description: 'Emotion Link is a web app designed to help users organize and understand their emotion provides a visual representation of life events and interactions',
form_factor: 'wide',
theme_color: '#000',
background_color: '#000',
icons: [
{
src: 'icons/favicon16x16.ico',
sizes: '16x16',
},
{
src: 'icons/favicon32x32.ico',
sizes: '32x32',
purpose: 'any'
},
{
src: 'icons/favicon64x64.ico',
sizes: '64x64'
},
{
src: 'icons/favicon96x96.ico',
sizes: '96x96',
},
{
src: 'icons/favicon128x128.ico',
sizes: '128x128 144x144',
purpose: 'maskable'
},
{
src: 'icons/favicon1024x1024.png',
sizes: '512x512 1024x1024',
tyue: 'image/png'
}
],
screenshots: [
{
src: 'screenshots/desktop-demo-1.png',
sizes: '1920x1080',
type: 'image/png',
form_factor: 'wide',
label: 'Desktop display'
},
{
src: 'screenshots/mobile-demo-1.png',
sizes: '945x2048',
type: 'image/png',
form_factor: 'narrow',
label: 'Mobile display'
}
]
};
// https://vitejs.dev/config/
export default defineConfig(({ mode }) => {
const env = loadEnv(mode, process.cwd(), '');
return {
define: {
'process.env': env,
},
plugins: [react(), VitePWA({ manifest })],
};
});