-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.umirc.ts
46 lines (45 loc) · 934 Bytes
/
.umirc.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
import { defineConfig } from "@umijs/max";
export default defineConfig({
title: "Template App",
// outputPath: "",
base: "/template/",
publicPath: "/template/", // end with '/'
routes: [
{ path: "/", component: "index" }
],
antd: {
theme: {
token: {
colorPrimary: "#666666",
colorTextBase: "#444444",
colorLink: "#1890ff",
// borderRadius: 2
},
components: {
FloatButton: {
// colorPrimary: '#C34582FF',
colorTextBase: "#444444",
},
},
},
},
access: {},
model: {},
initialState: {},
request: {
dataField: "data",
},
codeSplitting: {
// 加速JS访问
jsStrategy: "granularChunks",
},
esbuildMinifyIIFE: true,
proxy: {
"/api/v1": {
target: "http://localhost:8080/",
changeOrigin: true,
pathRewrite: { "^/api/v1": "api/v1" },
},
},
npmClient: 'pnpm',
});