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