forked from valueGa/valueGa_frontend
-
Notifications
You must be signed in to change notification settings - Fork 0
/
vite.config.js
29 lines (28 loc) · 887 Bytes
/
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
import { defineConfig } from "vite";
import react from "@vitejs/plugin-react";
// https://vitejs.dev/config/
export default defineConfig({
plugins: [react()],
build: {
chunkSizeWarningLimit: 500000,
},
server: {
proxy: {
"/api": "http://localhost:3000",
},
},
resolve: {
alias: [
// 절대경로로 접근하기
{ find: "~/components", replacement: "/src/components" },
{ find: "~/lib", replacement: "/src/lib" },
{ find: "~/routers", replacement: "/src/routers" },
{ find: "~/routes", replacement: "/src/routes" },
{ find: "~/assets", replacement: "/src/assets" },
{ find: "~/utiles", replacement: "/src/utiles" },
{ find: "~/components", replacement: "/src/components" },
{ find: "~/constants", replacement: "/src/constants" },
{ find: "~/apis", replacement: "/src/apis" },
],
},
});