-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathvite.config.js
More file actions
25 lines (23 loc) · 914 Bytes
/
vite.config.js
File metadata and controls
25 lines (23 loc) · 914 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
25
import tailwindcss from "@tailwindcss/vite";
import react from "@vitejs/plugin-react";
import path from "path";
import { fileURLToPath } from "url";
import { defineConfig } from "vite";
const __filename = fileURLToPath(import.meta.url);
const __dirname = path.dirname(__filename);
export default defineConfig({
plugins: [react(), tailwindcss()],
resolve: {
alias: {
"@components": path.resolve(__dirname, "./src/components"),
"@constants": path.resolve(__dirname, "./src/constants"),
"@pages": path.resolve(__dirname, "./src/pages"),
"@assets": path.resolve(__dirname, "./src/assets"),
"@utils": path.resolve(__dirname, "./src/utils"),
"@store": path.resolve(__dirname, "./src/store"),
"@api": path.resolve(__dirname, "./src/api"),
"@routes": path.resolve(__dirname, "./src/routes"),
"@hooks": path.resolve(__dirname, "./src/hooks"),
},
},
});