forked from venom-js/react-antd-common-component
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.umirc.library.js
66 lines (65 loc) · 1.42 KB
/
.umirc.library.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
const css = require('styled-components');
module.exports = {
// cjs: 'rollup',
esm: 'rollup',
cssModules: true,
extraBabelPlugins: [
[
'babel-plugin-import',
{
libraryName: 'antd',
libraryDirectory: 'es',
style: true
}
]
],
doc: {
plugins: [],
base: '/racc',
// theme: 'docz-theme-umi',
external: ['react', 'react-dom', 'antd'],
indexHTML: 'index.html',
styles: {
body: `
font-size: 16px;
line-height: 1.6;
background: red;
`
},
// menu: [{ name: '开始', route: '/'}],
themeConfig: {
// mode: 'moraga',
// codemirrorTheme: 'dracula',
showPlaygroundEditor: false,
logo: {
src:
'https://gw.alipayobjects.com/zos/rmsportal/KDpgvguMpGfqaHPjicRK.svg',
width: 40
}
},
htmlContext: {
head: {
favicon: '',
meta: [],
links: [
// {
// rel: 'stylesheet',
// href: 'https://cdn.bootcss.com/antd/3.20.7/antd.min.css'
// }
{
rel: 'stylesheet',
href: 'http://venom.org.cn/racc/public/css/reset.css'
},
{
rel: 'stylesheet',
href: '/public/css/reset.css'
},
{
rel: 'stylesheet',
href: 'https://cdn.bootcss.com/antd/3.20.7/antd.min.css'
}
]
}
}
}
};