-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathvite.config.ts
32 lines (30 loc) · 1.27 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
import { defineConfig } from "vite";
import react from "@vitejs/plugin-react-swc";
import path from "path";
import { dirname } from "path";
import { fileURLToPath } from "url";
const __filename = fileURLToPath(import.meta.url);
const __dirname = dirname(__filename);
export default defineConfig({
plugins: [react()],
resolve: {
alias: {
"@components": path.resolve(__dirname, "./src/components"),
"@UI": path.resolve(__dirname, "./src/components/UI"),
"@pages": path.resolve(__dirname, "./src/components/pages"),
"@forms": path.resolve(__dirname, "./src/forms"),
"@hooks": path.resolve(__dirname, "./src/hooks"),
"@store": path.resolve(__dirname, "./src/store"),
"@layouts": path.resolve(__dirname, "./src/layouts"),
"@hoc": path.resolve(__dirname, "./src/hoc"),
"@utils": path.resolve(__dirname, "./src/utils"),
"@routes": path.resolve(__dirname, "./src/routes"),
"@assets": path.resolve(__dirname, "./src/assets"),
"@styled": path.resolve(__dirname, "./src/styled"),
"@config": path.resolve(__dirname, "./src/config"),
"@interfaces": path.resolve(__dirname, "./src/interfaces"),
"@data": path.resolve(__dirname, "./src/data"),
"@styles": path.resolve(__dirname, "./src/styles")
}
}
});