-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathvite.config.ts
27 lines (26 loc) · 1.07 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
import { defineConfig } from "vite";
import react from "@vitejs/plugin-react";
import path from "path";
// https://vitejs.dev/config/
export default defineConfig({
plugins: [react()],
resolve: {
alias: {
"@assets": path.resolve(__dirname, "src/assets"),
"@components": path.resolve(__dirname, "src/components"),
"@hooks": path.resolve(__dirname, "src/hooks"),
"@contexts": path.resolve(__dirname, "src/contexts"),
"@services": path.resolve(__dirname, "src/services"),
"@constants": path.resolve(__dirname, "src/constants"),
"@utils": path.resolve(__dirname, "src/utils"),
"@libs": path.resolve(__dirname, "src/libs"),
"@hocs": path.resolve(__dirname, "src/hocs"),
"@modules": path.resolve(__dirname, "src/modules"),
"@layouts": path.resolve(__dirname, "src/layouts"),
"@models": path.resolve(__dirname, "src/models"),
"@styles": path.resolve(__dirname, "src/styles"),
"@screens": path.resolve(__dirname, "src/screens"),
"@validations": path.resolve(__dirname, "src/validations"),
},
},
});