-
Notifications
You must be signed in to change notification settings - Fork 0
/
.umirc.ts
59 lines (58 loc) · 1.45 KB
/
.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
47
48
49
50
51
52
53
54
55
56
57
58
59
import { defineConfig } from 'umi';
import pxtoviewport from 'postcss-px-to-viewport';
export default defineConfig({
outputPath: 'build',
publicPath:
process.env.NODE_ENV === 'production' ? '/game/cqupt-help-bms/' : '/',
theme: {
'@menu-item-height': '80px',
'@menu-inline-toplevel-item-height': '80px',
// '@table-expanded-row-bg': '#F5F8FF',
// 'table-row-hover-bg': '#F5F8FF',
'@select-border-color': 'transparent',
'@select-background': '#F8FAFB',
'@select-selection-item-bg': '#E5E9FF',
},
history: { type: 'hash' },
nodeModulesTransform: {
type: 'none',
},
mock: false,
dva: {
immer: true,
},
proxy: {
'/api': {
target: 'https://cyxbsmobile.redrock.team/wxapi/cyb-permissioncenter',
changeOrigin: true,
pathRewrite: { '^/api': '' },
},
'/qny': {
target: 'https://cyxbsmobile.redrock.team/wxapi/red-qny',
changeOrigin: true,
pathRewrite: { '^/qny': '' },
},
'/login': {
target: 'https://wx.redrock.team',
changeOrigin: true,
pathRewrite: { '^/login': '' },
},
},
postcssLoader: {
plugins: [
pxtoviewport({
unitToConvert: 'px',
viewportWidth: 1920,
unitPrecision: 5,
propList: ['*'],
viewportUnit: 'vw',
fontViewportUnit: 'vw',
selectorBlackList: [],
minPixelValue: 1,
mediaQuery: false,
replace: true,
exclude: [],
}),
],
},
});