-
Notifications
You must be signed in to change notification settings - Fork 1
/
vite.config.ts
90 lines (87 loc) · 2.52 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
import { defineConfig } from "vite";
import react from "@vitejs/plugin-react-swc";
import { VitePWA } from "vite-plugin-pwa";
import { resolve } from "path";
import svgr from "vite-plugin-svgr";
// https://vite.dev/config/
export default defineConfig({
plugins: [
react(),
svgr(),
VitePWA({
registerType: "autoUpdate",
includeAssets: ["favicon.ico", "apple-touch-icon.png", "mask-icon.svg"],
manifest: {
name: "숨,",
short_name: "숨,",
start_url: "/",
display: "standalone",
background_color: "#ffffff",
theme_color: "#ffffff",
icons: [
{
purpose: "maskable",
sizes: "48x48",
src: "icons/maskable_icon_x48.png",
type: "image/png",
},
{
purpose: "maskable",
sizes: "72x72",
src: "icons/maskable_icon_x72.png",
type: "image/png",
},
{
purpose: "maskable",
sizes: "96x96",
src: "icons/maskable_icon_x96.png",
type: "image/png",
},
{
purpose: "maskable",
sizes: "128x128",
src: "icons/maskable_icon_x128.png",
type: "image/png",
},
{
purpose: "maskable",
sizes: "192x192",
src: "icons/maskable_icon_x192.png",
type: "image/png",
},
{
purpose: "maskable",
sizes: "384x384",
src: "icons/maskable_icon_x384.png",
type: "image/png",
},
{
purpose: "maskable",
sizes: "512x512",
src: "icons/maskable_icon_x512.png",
type: "image/png",
},
],
},
}),
],
resolve: {
alias: [
{ find: "@apis", replacement: resolve(__dirname, "src/apis") },
{ find: "@assets", replacement: resolve(__dirname, "src/assets") },
{
find: "@components",
replacement: resolve(__dirname, "src/components"),
},
{
find: "@constant",
replacement: resolve(__dirname, "src/constant"),
},
{ find: "@hooks", replacement: resolve(__dirname, "src/hooks") },
{ find: "@pages", replacement: resolve(__dirname, "src/pages") },
{ find: "@store", replacement: resolve(__dirname, "src/store") },
{ find: "@type", replacement: resolve(__dirname, "src/type") },
{ find: "@utils", replacement: resolve(__dirname, "src/utils") },
],
},
});