-
Notifications
You must be signed in to change notification settings - Fork 11
/
Copy path.fatherrc.js
39 lines (38 loc) · 1016 Bytes
/
.fatherrc.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
import react from 'react';
import reactDom from 'react-dom';
import reactIs from 'react-is';
import propTypes from 'prop-types';
export default
{
// cssModules: true, // 默认是 .module.css 走 css modules,.css 不走 css modules。配置 cssModules 为 true 后,全部 css 文件都走 css modules。(less 文件同理)
extractCSS: true,
esm: 'babel',
cjs: 'babel',
umd: {
name: 'dantd',
sourcemap: true,
globals: {
react: 'React',
antd: 'antd'
},
},
extraBabelPlugins: [
['import', { libraryName: 'antd', libraryDirectory: 'es', style: true }],
],
entry: 'src/index.tsx',
namedExports: {
react: Object.keys(react),
'react-dom': Object.keys(reactDom),
'react-is': Object.keys(reactIs),
'prop-types': Object.keys(propTypes),
},
doc: {
title: 'Dantd基础UI组件库',
base: '/dantd/',
menu: [
'首页',
'更新日志',
'组件'
]
},
}