|
@@ -11,7 +11,11 @@ export default defineConfig({
|
11
|
11
|
define: {
|
12
|
12
|
API_BASE: REACT_APP_ENV ? '' : ''
|
13
|
13
|
},
|
|
14
|
+ publicPath: '/w2/',
|
14
|
15
|
hash: true,
|
|
16
|
+ history: {
|
|
17
|
+ type: 'hash'
|
|
18
|
+ },
|
15
|
19
|
antd: {
|
16
|
20
|
dark: true,
|
17
|
21
|
},
|
|
@@ -27,6 +31,8 @@ export default defineConfig({
|
27
|
31
|
// https://umijs.org/zh-CN/plugins/plugin-locale
|
28
|
32
|
locale: false,
|
29
|
33
|
|
|
34
|
+ jsMinifier: 'terser',
|
|
35
|
+ cssMinifier: 'cssnano',
|
30
|
36
|
targets: {
|
31
|
37
|
ie: 11,
|
32
|
38
|
},
|
|
@@ -48,18 +54,5 @@ export default defineConfig({
|
48
|
54
|
// Fast Refresh 热更新
|
49
|
55
|
fastRefresh: true,
|
50
|
56
|
presets: ['umi-presets-pro'],
|
51
|
|
- openAPI: [
|
52
|
|
- {
|
53
|
|
- requestLibPath: "import { request } from '@umijs/max'",
|
54
|
|
- // 或者使用在线的版本
|
55
|
|
- // schemaPath: "https://gw.alipayobjects.com/os/antfincdn/M%24jrzTTYJN/oneapi.json"
|
56
|
|
- schemaPath: join(__dirname, 'oneapi.json'),
|
57
|
|
- mock: false,
|
58
|
|
- },
|
59
|
|
- {
|
60
|
|
- requestLibPath: "import { request } from '@umijs/max'",
|
61
|
|
- schemaPath: 'https://gw.alipayobjects.com/os/antfincdn/CA1dOm%2631B/openapi.json',
|
62
|
|
- projectName: 'swagger',
|
63
|
|
- },
|
64
|
|
- ],
|
|
57
|
+ openAPI: false,
|
65
|
58
|
});
|