-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy path.umirc.ts
56 lines (55 loc) · 1.25 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
import { defineConfig } from 'dumi';
export default defineConfig({
base: '/react-dhooks',
title: 'react-dhooks',
publicPath: '/react-dhooks/',
favicon: '/react-dhooks/logo.svg',
logo: '/react-dhooks/icon.svg',
outputPath: 'docs-dist',
mode: 'site',
// more config: https://d.umijs.org/config
navs: [
// null, // null 值代表保留约定式生成的导航,只做增量配置
{ title: 'Hooks', path: '/hooks' },
{
title: 'GitHub',
path: 'https://github.com/panyushan-jade/react-dhooks',
},
],
alias: {
'react-dhooks': process.cwd() + '/src/index.ts',
},
menus: {
'/hooks': [
{
title: 'LifeCycle',
children: ['useMount', 'useUnmount'],
},
{
title: 'State',
children: ['useSetState', 'useBoolean', 'useToggle'],
},
{
title: 'Effect',
children: ['useUpdateEffect', 'useUpdate'],
},
{
title: 'Advanced',
children: ['useLatest'],
},
{
title: 'File',
children: ['useUrlToBase64', 'useBlobToBase64'],
},
{
title: 'Local',
children: ['useLocalStorage'],
},
],
},
nodeModulesTransform: {
type: 'none',
exclude: [],
},
dynamicImport: {},
});