-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathvite.config.ts
27 lines (26 loc) · 1.01 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
import path from "path";
import { defineConfig } from "vite";
import react from "@vitejs/plugin-react";
import svgr from "vite-plugin-svgr";
// https://vitejs.dev/config/
export default defineConfig({
// base: "/some-landing/",
plugins: [svgr(), react()],
resolve: {
alias: {
pages: path.resolve(__dirname, "./src/pages"),
components: path.resolve(__dirname, "./src/components"),
hooks: path.resolve(__dirname, "./src/hooks"),
types: path.resolve(__dirname, "./src/types"),
assets: path.resolve(__dirname, "./src/assets"),
models: path.resolve(__dirname, "./src/models"),
services: path.resolve(__dirname, "./src/services"),
constants: path.resolve(__dirname, "./src/constants"),
routes: path.resolve(__dirname, "./src/routes"),
context: path.resolve(__dirname, "./src/context"),
utils: path.resolve(__dirname, "./src/utils"),
sections: path.resolve(__dirname, "./src/sections"),
store: path.resolve(__dirname, "./src/store"),
},
},
});