-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.umirc.ts
51 lines (47 loc) · 1.02 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
import { defineConfig } from 'dumi'
let base, publicPath;
if (process.env.NODE_ENV === 'production') {
base = '/k-view-react',
publicPath= '/k-view-react/'
}
const conf = {
title: 'K-View-React',
mode: 'site',
outputPath: 'site',
exportStatic: {},
dynamicImport: {},
base,
publicPath,
navs: [
{
title: '介绍',
path: '/guide'
},
{
title: '组件',
path: '/components',
},
{
title: '贡献',
path: '/contributing',
},
{
title: 'Github',
path: 'https://github.com/SoldierAb/k-view-react'
}
],
menus: {
'/components': [
{
title: '组件',
path: '/components',
children: [
'/components/button.md',
/* PLOP_INJECT_MD */
'/components/popup-box.md',
]
}
]
}
}
export default defineConfig(conf)