-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy path.dumirc.ts
54 lines (51 loc) · 1.43 KB
/
.dumirc.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
import { defineConfig } from 'dumi';
import path from 'path';
import { themeConfig } from './theme-config';
export default defineConfig({
title: 'CloudApp VIDC',
favicons: ['https://user-images.githubusercontent.com/9554297/83762004-a0761b00-a6a9-11ea-83b4-9c8ff721d4b8.png'],
outputPath: 'docs-dist',
targets: { chrome: 60 },
apiParser: {
unpkgHost: 'https://unpkg.zhimg.com',
},
resolve: {
// 配置入口文件路径,API 解析将从这里开始
entryFile: './src/index.ts',
},
theme: {
'@ant-prefix': 'cloudapp',
},
themeConfig: {
name: 'VIDC',
logo: 'https://user-images.githubusercontent.com/9554297/83762004-a0761b00-a6a9-11ea-83b4-9c8ff721d4b8.png',
navs: [
null, // null 值代表保留约定式生成的导航,只做增量配置
{
title: 'GitLab',
path: 'https://git.topvdn.com/cloudapp/vidc',
},
],
},
alias: {
'@src': path.resolve('./src'),
},
proxy: {
'/api': {
target: 'http://192.168.101.41:13336',
changeOrigin: true,
},
'/twinmapdataservice': {
target: 'http://192.168.101.38:8888',
changeOrigin: true,
pathRewrite: { twinmapdataservice: 'twinmap' },
},
'/twinmap': {
target: 'http://192.168.101.38:8888',
changeOrigin: true,
},
},
scripts: ['//at.alicdn.com/t/font_1724012_972m5d05cou.js'],
styles: [themeConfig],
// more config: https://d.umijs.org/config
});