-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathvite.config.js
More file actions
52 lines (51 loc) · 1.18 KB
/
vite.config.js
File metadata and controls
52 lines (51 loc) · 1.18 KB
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
import { fileURLToPath, URL } from 'node:url'
import { defineConfig } from 'vite'
import { VitePWA } from 'vite-plugin-pwa'
import tailwindcss from "@tailwindcss/vite"
import vue from '@vitejs/plugin-vue'
// https://vite.dev/config/
export default defineConfig({
base: process.env.NODE_ENV === 'production' ? '/Markkk/' : '/',
plugins: [
tailwindcss(),
vue(),
VitePWA({
registerType: 'autoUpdate',
includeAssets: ['favicon.ico', 'apple-touch-icon.svg'],
manifest: {
name: 'Markkk',
short_name: 'Markkk',
description: 'Éditeur de Markdown + Convertisseur en PDF',
theme_color: '#2A303C',
background_color: '#2A303C',
display: 'standalone',
icons: [
{
src: 'pwa-192x192.svg',
sizes: '192x192',
type: 'image/svg+xml'
},
{
src: 'pwa-512x512.svg',
sizes: '512x512',
type: 'image/svg+xml'
},
{
src: 'pwa-512x512.svg',
sizes: '512x512',
type: 'image/svg+xml',
purpose: 'any maskable'
}
],
},
workbox: {
maximumFileSizeToCacheInBytes: 4 * 1024 * 1024, // 4MB
},
})
],
resolve: {
alias: {
'@': fileURLToPath(new URL('./src', import.meta.url))
},
}
})