-
Notifications
You must be signed in to change notification settings - Fork 0
/
vite.config.js
51 lines (50 loc) · 1.11 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
/* eslint-disable no-undef */
import { defineConfig } from 'vite'
import { VitePWA } from 'vite-plugin-pwa'
import react from '@vitejs/plugin-react'
import svgr from '@honkhonk/vite-plugin-svgr'
import path from 'path'
// https://vitejs.dev/config/
export default defineConfig({
resolve: {
alias: {
'@': path.resolve(__dirname, 'src'),
'@assets': path.resolve(__dirname, 'src/assets'),
},
},
plugins: [
react(),
svgr(),
VitePWA({
registerType: 'autoUpdate',
devOptions: {
enabled: true,
},
workbox: {
globPatterns: ['**/*.{js,css,html,ico,png,svg,woff}'],
},
manifest: {
name: 'EmotionDive',
short_name: 'EmotionDive',
description:
'El lugar perfecto para prácticar y desarrollar tu Inteligencia Emocional.',
start_url: '/',
display: 'minimal-ui',
theme_color: '#f8f8f8',
background_color: '#f8f8f8',
icons: [
{
src: '/android-chrome-192x192.png',
sizes: '192x192',
type: 'image/png',
},
{
src: '/android-chrome-384x384.png',
sizes: '384x384',
type: 'image/png',
},
],
},
}),
],
})