-
Notifications
You must be signed in to change notification settings - Fork 0
/
bisheng.config.js
44 lines (43 loc) · 1.24 KB
/
bisheng.config.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
const alertLessConfig = (rules) => {
rules.forEach((rule) => {
if (rule.loader && rule.loader.includes('less-loader')) {
rule.options = rules.options || {};
rule.options.javascriptEnabled = true;
} else if (rule.use) {
alertLessConfig(rule.use);
}
});
};
const filePath = '/antd-kit';
module.exports = {
history: 'hash',
port: 8090,
source: {
guide: ['./guide'],
packages: './packages'
},
output: './docs',
theme: './site',
entiryName: 'index',
themeConfig: {
siteKey: 'antd-kit',
home: '/guide/introduce',
root: filePath,
combineChangelog: false,
compSorterType: 'native',
title: 'Frontend Component Library',
github: 'https://github.com/closertb',
friendLinks: [{ name: 'closertb', link: 'https://github.com/closertb' },
{ name: 'antd', link: 'https://ant-design.gitee.io/index-cn' },
{ name: 'react', link: 'https://react.docschina.org/tutorial/tutorial.html' },
{ name: 'BiSheng', link: 'https://github.com/benjycui/bisheng' }]
},
devServerConfig: {},
webpackConfig(config) {
config.devtool = 'source-map';
alertLessConfig(config.module.rules);
// resetTsConfig(config.module.rules);
return config;
},
root: `${filePath}/`
};