forked from OZ-Coding-School/oz_react_mini_11
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathvite.config.js
More file actions
30 lines (29 loc) · 1.28 KB
/
vite.config.js
File metadata and controls
30 lines (29 loc) · 1.28 KB
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
import { defineConfig } from "vite";
import react from "@vitejs/plugin-react";
import tailwindcss from "@tailwindcss/vite";
// https://vite.dev/config/
export default defineConfig({
base: "/",
plugins: [tailwindcss(), react()],
resolve: {
alias: [
{ find: "@", replacement: "/src" },
{ find: "@assets", replacement: "/src/assets" },
{ find: "@components", replacement: "/src/components" },
{ find: "@common", replacement: "/src/components/common" },
{ find: "@detailpage", replacement: "/src/components/detailpage" },
{ find: "@mainpage", replacement: "/src/components/mainpage" },
{ find: "@mypage", replacement: "/src/components/mypage" },
{ find: "@navbar", replacement: "/src/components/navbar" },
{ find: "@signpages", replacement: "/src/components/signpages" },
{ find: "@skeletons", replacement: "/src/components/skeletons" },
{ find: "@constants", replacement: "/src/constants" },
{ find: "@contexts", replacement: "/src/contexts" },
{ find: "@data", replacement: "/src/data" },
{ find: "@hooks", replacement: "/src/hooks" },
{ find: "@layout", replacement: "/src/layout" },
{ find: "@pages", replacement: "/src/pages" },
{ find: "@utils", replacement: "/src/utils" },
],
},
});