-
Notifications
You must be signed in to change notification settings - Fork 0
/
vite.config.ts
143 lines (142 loc) · 3.84 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
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
import vue from '@vitejs/plugin-vue'
import { defineConfig } from 'vite'
import { VitePWA } from 'vite-plugin-pwa'
import ssl from "@vitejs/plugin-basic-ssl"
import path from 'node:path'
// https://vitejs.dev/config/
export default defineConfig({
resolve: {
extensions: ['.ts', '.json', '.vue'],
alias: {
'@': path.resolve(__dirname, 'src'),
'$': path.resolve(__dirname, 'vite')
}
},
plugins: [
ssl(),
vue({
script: {
defineModel: true
}
}),
VitePWA({
registerType: 'autoUpdate',
injectRegister: 'auto',
devOptions: {
enabled: true
},
manifest: {
"id": "/",
"name": "Apple WebOS Portfolio Nicolas Choquet",
"short_name": "Nicolas Choquet",
"start_url": "/",
"scope": "/",
"display": "fullscreen",
"dir": "ltr",
"theme_color": "#000000",
"background_color": "#000000",
"lang": "fr",
"description": "Portfolio du développeur Nicolas Choquet sous forme de système d'exploitation web qui s'adapte au support.",
"orientation": "portrait",
"icons": [
{
"src": "/img/apple-192x192.png",
"sizes": "192x192",
"type": "image/png"
},
{
"src": "/img/apple-512x512.png",
"sizes": "512x512",
"type": "image/png"
}
],
"categories": [
"navigation",
"personalization"
],
"screenshots": [
{
"label": "loading desktop",
"src": "/manifest/screenshots/desktop/loading.png",
"type": "image/png",
"form_factor": "wide",
"sizes": "2191x1060"
},
{
"label": "login desktop",
"src": "/manifest/screenshots/desktop/login.png",
"type": "image/png",
"form_factor": "wide",
"sizes": "2191x1060"
},
{
"label": "desktop",
"src": "/manifest/screenshots/desktop/desktop.png",
"type": "image/png",
"form_factor": "wide",
"sizes": "2191x1060"
},
{
"label": "mobile unlock screen",
"src": "/manifest/screenshots/mobile/unlock-screen.png",
"type": "image/png",
"form_factor": "narrow",
"sizes": "517x1058"
}
],
"launch_handler": {
client_mode: 'focus-existing'
},
"scope_extensions": [
{"origin": 'www.nicolaschoquet.fr'}
],
"edge_side_panel": {
"preferred_width": 400
},
"handle_links": "preferred",
"protocol_handlers": [
{
"protocol": "web+ncAppleOsApp",
"url": "/?app=%s"
}
],
"shortcuts": [
{
"name": "Finder",
"url": "?app=finder",
"description": "Ouvrir le finder",
"icons": [
{
"purpose": "maskable",
"src": "/manifest/shortcuts/finder.png",
"type": "image/png",
"sizes": "96x96"
}
]
},
{
"name": "Terminal",
"url": "/?app=terminal",
"description": "Ouvrir le terminal",
"icons": [
{
"purpose": "maskable",
"src": "/manifest/shortcuts/terminal.png",
"type": "image/png",
"sizes": "96x96"
}
]
}
],
"related_applications": [{
"platform": "webapp",
"url": "https://www.nicolaschoquet.fr/manifest.webmanifest"
}],
"prefer_related_applications": true,
}
})
],
// server: {
// https: true
// }
})