-
Notifications
You must be signed in to change notification settings - Fork 0
/
vite.config.ts
29 lines (27 loc) · 1003 Bytes
/
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
import path from "node:path";
import { defineConfig } from "vite";
import react from "@vitejs/plugin-react";
export default defineConfig({
resolve: {
alias: {
"@shadcn-ui": path.resolve(__dirname, "./src/components/shadcn/ui"),
"@public": path.resolve(__dirname, "./public"),
"@data": path.resolve(__dirname, "./src/data"),
"@assets": path.resolve(__dirname, "./src/assets"),
"@pages": path.resolve(__dirname, "./src/pages"),
"@utils": path.resolve(__dirname, "./src/utils"),
"@defines": path.resolve(__dirname, "./src/defines"),
"@hooks": path.resolve(__dirname, "./src/hooks"),
"@styles": path.resolve(__dirname, "./src/styles"),
"@sections": path.resolve(__dirname, "./src/sections"),
"@providers": path.resolve(__dirname, "./src/providers"),
"@components": path.resolve(__dirname, "./src/components"),
},
},
plugins: [react()],
build: {
outDir: "dist",
emptyOutDir: true,
sourcemap: true,
}
});