-
Notifications
You must be signed in to change notification settings - Fork 46
/
.umirc.ts
76 lines (75 loc) · 1.6 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
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
import { defineConfig } from 'dumi';
export default defineConfig({
title: '雷数前端',
favicon: 'https://avatars0.githubusercontent.com/u/56826119',
logo: 'https://avatars0.githubusercontent.com/u/56826119',
outputPath: 'docs-dist',
mode: 'site',
hash: true,
base: '/td-design',
publicPath: '/td-design/',
exportStatic: {},
dynamicImport: {},
webpack5: {},
// define: {
// AMAP_DRILL_SERVER_KEY: '23979b50fbe00d2e05c1cf4f6300d028',
// AMAP_DRILL_JS_KEY: 'dfc9eee6a8e7bff31451ce22e3689e09',
// AMAP_DRILL_JS_SECRET: 'ac1294b1351220044a66c1023f7d5226',
// },
extraBabelPlugins: [
[
'import',
{
libraryName: 'antd',
libraryDirectory: 'es',
style: 'css',
},
],
],
chainWebpack(config) {
config.module
.rule('ttf')
.test(/.(ttf|otf)$/)
.use('file-loader')
.loader('file-loader');
config.module
.rule('media')
.test(/\.(mp4)$/)
.use('file-loader')
.loader(require.resolve('file-loader'));
},
navs: [
{
title: 'RN组件库',
path: '/react-native',
},
{
title: '大屏素材库',
path: '/screen',
},
{
title: '设计模式',
path: '/pattern',
},
{
title: '数据结构',
path: '/structure',
},
{
title: '软件开发',
path: '/development',
},
{
title: '常见问题',
path: '/faq',
},
{
title: '友情链接',
path: '/friendlink',
},
{
title: 'GitHub',
path: 'https://github.com/thundersdata-frontend/td-design',
},
],
});