-
Notifications
You must be signed in to change notification settings - Fork 1
/
vite.config.ts
27 lines (25 loc) · 1019 Bytes
/
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
import { defineConfig } from "vite";
import react from "@vitejs/plugin-react";
import path from "path";
import { fileURLToPath } from "url";
// __dirname 설정
const __dirname = path.dirname(fileURLToPath(import.meta.url));
export default defineConfig({
plugins: [react()],
resolve: {
alias: {
"@apis": path.resolve(__dirname, "src/apis"),
"@atoms": path.resolve(__dirname, "src/atoms"),
"@components": path.resolve(__dirname, "src/components"),
"@constants": path.resolve(__dirname, "src/constants"),
"@hooks": path.resolve(__dirname, "src/hooks"),
"@layouts": path.resolve(__dirname, "src/layouts"),
"@linenow-types": path.resolve(__dirname, "src/lib/types"),
"@interfaces": path.resolve(__dirname, "src/lib/interfaces"),
"@pages": path.resolve(__dirname, "src/pages"),
"@routes": path.resolve(__dirname, "src/routes"),
"@styles": path.resolve(__dirname, "src/styles"),
"@utils": path.resolve(__dirname, "src/utils"),
},
},
});