-
Notifications
You must be signed in to change notification settings - Fork 12
Expand file tree
/
Copy pathvite.config.ts
More file actions
23 lines (21 loc) · 835 Bytes
/
vite.config.ts
File metadata and controls
23 lines (21 loc) · 835 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
import path from "path";
import react from "@vitejs/plugin-react";
import { defineConfig } from "vite";
export default defineConfig({
plugins: [react()],
resolve: {
alias: {
"@": path.resolve(__dirname, "./src"),
"@/assets": path.resolve(__dirname, "./src/assets"),
"@/components": path.resolve(__dirname, "./src/components"),
"@/contexts": path.resolve(__dirname, "./src/contexts"),
"@/data": path.resolve(__dirname, "./src/data"),
"@/hooks": path.resolve(__dirname, "./src/hooks"),
"@/lib": path.resolve(__dirname, "./src/lib"),
"@/pages": path.resolve(__dirname, "./src/pages"),
"@/services": path.resolve(__dirname, "./src/services"),
"@/styles": path.resolve(__dirname, "./src/styles"),
"@/utils": path.resolve(__dirname, "./src/utils"),
},
},
});