forked from alibaba/x-render
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.umirc.js
66 lines (65 loc) · 1.55 KB
/
.umirc.js
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
65
66
import { defineConfig } from 'dumi';
import path from 'path';
export default defineConfig({
title: 'form-render',
favicon: 'https://img.alicdn.com/tfs/TB17UtINiLaK1RjSZFxXXamPFXa-606-643.png',
logo: 'https://img.alicdn.com/tfs/TB17UtINiLaK1RjSZFxXXamPFXa-606-643.png',
outputPath: 'docs-dist',
dynamicImport: {},
// menus: {
// '/guide': [
// {
// title: '介绍',
// children: ['guide/getting-started', 'guide/new-feature'],
// },
// ],
// },
navs: [
null,
{
title: '表单设计器',
path: 'https://x-render.gitee.io/schema-generator/',
},
{
title: 'table-render',
path: 'https://x-render.gitee.io/table-render/',
},
{ title: 'GitHub', path: 'https://github.com/alibaba/form-render' },
{
title: '更新日志',
path:
'https://github.com/alibaba/form-render/blob/master/packages/form-render/CHANGELOG.md',
},
{
title: '国内镜像',
path: 'https://x-render.gitee.io/form-render/',
},
],
mode: 'site',
alias: {
'form-render/dist': path.resolve(__dirname, 'packages/form-render/dist'),
},
base: '/form-render/',
publicPath: '/form-render/',
exportStatic: {},
extraBabelPlugins: [
[
'import',
{
libraryName: 'antd',
libraryDirectory: 'lib',
style: 'css',
},
'antd',
],
[
'import',
{
libraryName: '@alifd/next',
libraryDirectory: 'lib',
},
'@alifd/next',
],
],
// more config: https://d.umijs.org/config
});