-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathvite.config.ts
65 lines (64 loc) · 1.96 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
import { defineConfig } from 'vite';
import react from '@vitejs/plugin-react';
import path from 'path';
import { VitePWA } from 'vite-plugin-pwa';
export default defineConfig({
plugins: [
react(),
VitePWA({
registerType: 'autoUpdate',
manifest: {
name: '후루룩',
short_name: 'ㅎㄹㄹ',
description: '나만의 라면을 후루룩!',
theme_color: '#ffffff',
icons: [
{
src: './src/assets/app-icons/apple-touch-icon-72x72.png',
sizes: '72x72',
type: 'image/png',
},
{
src: './src/assets/app-icons/apple-touch-icon-76x76.png',
sizes: '76x76',
type: 'image/png',
},
{
src: './src/assets/app-icons/apple-touch-icon-114x114.png',
sizes: '114x114',
type: 'image/png',
},
{
src: './src/assets/app-icons/apple-touch-icon-120x120.png',
sizes: '120x120',
type: 'image/png',
},
{
src: './src/assets/app-icons/apple-touch-icon-144x144.png',
sizes: '144x144',
type: 'image/png',
},
{
src: './src/assets/app-icons/apple-touch-icon-152x152.png',
sizes: '152x152',
type: 'image/png',
},
],
},
}),
],
resolve: {
alias: {
'@': path.resolve(__dirname, './src'),
'@components': path.resolve(__dirname, './src/components'),
'@pages': path.resolve(__dirname, './src/pages'),
'@styles': path.resolve(__dirname, './src/styles'),
'@utils': path.resolve(__dirname, './src/utils'),
'@hooks': path.resolve(__dirname, './src/hooks'),
'@api': path.resolve(__dirname, './src/api'),
'@assets': path.resolve(__dirname, './src/assets'),
'@router': path.resolve(__dirname, './src/router'),
'@types': path.resolve(__dirname, './src/types'),
},
},
});