mirror of
https://github.com/ant-design/ant-design.git
synced 2024-11-26 04:00:13 +08:00
ff31a5b555
This reverts commit 7a07b128d1
.
35 lines
735 B
JavaScript
35 lines
735 B
JavaScript
const path = require('path');
|
|
|
|
module.exports = {
|
|
source: [
|
|
'./components',
|
|
'./docs',
|
|
'CHANGELOG.md', // TODO: fix it in bisheng
|
|
],
|
|
theme: './site/theme',
|
|
htmlTemplate: './site/theme/static/template.html',
|
|
plugins: [
|
|
'bisheng-plugin-description',
|
|
'bisheng-plugin-toc?maxDepth=2',
|
|
'bisheng-plugin-react?lang=__react',
|
|
'./site/bisheng-plugin-antd',
|
|
],
|
|
webpackConfig(config) {
|
|
config.resolve.alias = {
|
|
antd: process.cwd(),
|
|
site: path.join(process.cwd(), 'site'),
|
|
};
|
|
|
|
config.babel.plugins.push([
|
|
require.resolve('babel-plugin-antd'),
|
|
{
|
|
style: true,
|
|
libraryName: 'antd',
|
|
libDir: 'components',
|
|
},
|
|
]);
|
|
|
|
return config;
|
|
},
|
|
};
|