forked from alibaba/hooks
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.umirc.js
91 lines (91 loc) · 2.45 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
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
export default {
// ssr: {},
exportStatic: {},
nodeModulesTransform: {
type: 'none',
exclude: [],
},
extraBabelPlugins: [
[
'babel-plugin-import',
{
libraryName: 'antd',
libraryDirectory: 'es',
style: true,
},
'antd',
],
[
'babel-plugin-import',
{
libraryName: '@alifd/next',
style: false,
},
'fusion',
],
],
mode: 'site',
title: 'ahooks',
favicon: '/simple-logo.svg',
logo: '/logo.svg',
dynamicImport: {},
manifest: {},
links: [{ rel: 'manifest', href: '/asset-manifest.json' }],
hash: true,
resolve: {
includes: ['docs', 'packages/hooks/src', 'packages/use-request', 'packages/use-url-state'],
},
links: [
{
rel: 'stylesheet',
href: 'https://unpkg.com/@alifd/[email protected]/dist/next-noreset.min.css',
},
{ rel: 'stylesheet', href: '/style.css' },
],
navs: {
'zh-CN': [
null,
{
title: '生态',
children: [
{
title: 'useTable',
path: 'https://usetable-ahooks.js.org/',
},
],
},
{ title: 'v1.x', path: 'http://hooks.umijs.org/' },
{ title: 'GitHub', path: 'https://github.com/alibaba/hooks' },
{ title: '更新日志', path: 'https://github.com/alibaba/hooks/releases' },
{ title: '国内镜像', path: 'https://ahooks.gitee.io/zh-CN' },
],
'en-US': [
null,
{
title: 'Ecosystem',
children: [
{
title: 'useTable',
path: 'https://usetable-ahooks.js.org/',
},
],
},
{ title: 'v1.x', path: 'http://hooks.umijs.org/' },
{ title: 'GitHub', path: 'https://github.com/alibaba/hooks' },
{ title: 'Changelog', path: 'https://github.com/alibaba/hooks/releases' },
{ title: '国内镜像', path: 'https://ahooks.gitee.io/zh-CN' },
],
},
headScripts: ['https://s4.cnzz.com/z_stat.php?id=1278992092&web_id=1278992092'],
hire: {
title: '招招招招招前端!!!!',
content: `
<ul>
<li>ahooks、qiankun、antd mobile、l7 各种开源项目,快来并肩作战!</li>
<li>小组介绍:<a href="https://www.yuque.com/docs/share/8f763b3f-acd8-4ebf-a443-a0f45c5db293?#" target="_blank">http://topurl.cn/8wP</a></li>
<li>投递邮箱:[email protected]</li>
</ul>`,
email: '[email protected]',
slogan: '招招招招招前端!!!!',
},
};