-
Notifications
You must be signed in to change notification settings - Fork 0
/
vite.config.ts
64 lines (61 loc) · 2.58 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
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
import path from "path";
import { defineConfig } from "vite";
import react from "@vitejs/plugin-react-swc";
// https://vitejs.dev/config/
export default defineConfig({
plugins: [react()],
build: {
rollupOptions: {
output: {
manualChunks: {},
},
},
sourcemap: false,
},
css: {
preprocessorOptions: {},
},
resolve: {
alias: {
// "@typings/*": ["src/typings/*"],
// "@domain-pages/*": ["src/pages"],
// "@admin-pages/*": ["src/pages/admin/*"],
// "@base-pages/*": ["src/pages/base/*"],
// "@shop-pages/*": ["src/pages/shop/*"],
// "@social-pages/*": ["src/pages/social/*"],
// "@base-auth/*": ["src/auth/*"],
// "@api/*": ["src/api/*"],
// "@provider-types/*": ["src/providers/types/*"],
// "@message-provider": ["src/providers/messaging"],
// "@message-provider/*": ["src/providers/messaging/*"],
// "@state-provider": ["src/providers/state"],
// "@state-provider/*": ["src/providers/state/*"],
// "@shared-comps/*": ["src/shared/components/*"],
// "@shared-hooks/*": ["src/shared/hooks/*"],
// "@shared-hooks/*": ["src/shared/hooks/*"],
// "@shared-data/*": ["src/shared/data/*"],
// "@shared-constants/*": ["src/shared/constants/*"],
// // "@domain-shared/*": ["src/shared/*"],
// "@domain-error/*": ["src/error/*"],
// "@error-pages/*": ["src/errors/*"],
"@typings": path.resolve(__dirname, "src/typings"),
"@domain-pages": path.resolve(__dirname, "src/pages"),
"@admin-pages": path.resolve(__dirname, "src/pages/admin"),
"@base-pages": path.resolve(__dirname, "src/pages/base"),
"@shop-pages": path.resolve(__dirname, "src/pages/shop"),
"@social-pages": path.resolve(__dirname, "src/pages/social"),
"@base-auth": path.resolve(__dirname, "src/auth"),
"@api": path.resolve(__dirname, "src/api"),
"@provider-types": path.resolve(__dirname, "src/providers/types"),
"@message-provider": path.resolve(__dirname, "src/providers/messaging"),
"@state-provider": path.resolve(__dirname, "src/providers/state"),
"@shared-comps": path.resolve(__dirname, "src/shared/components"),
"@shared-hooks": path.resolve(__dirname, "src/shared/hooks"),
"@shared-data": path.resolve(__dirname, "src/shared/data"),
"@shared-constants": path.resolve(__dirname, "src/shared/constants"),
"@domain-error": path.resolve(__dirname, "src/error"),
"@domain-shared": path.resolve(__dirname, "src/shared"),
"@error-pages": path.resolve(__dirname, "src/errors"),
},
},
});