mirror of
https://github.com/ant-design/ant-design.git
synced 2025-01-18 22:36:31 +08:00
docs: enable components tree-shaking (#43777)
This commit is contained in:
parent
23671fda84
commit
c713606b8c
@ -1,4 +0,0 @@
|
||||
// Need import for the additional core style
|
||||
// exports.styleCore = require('../components/style/reset.css');
|
||||
|
||||
module.exports = require('../../components');
|
@ -30,8 +30,7 @@ export default defineConfig({
|
||||
'antd/lib': path.join(__dirname, 'components'),
|
||||
'antd/es': path.join(__dirname, 'components'),
|
||||
'antd/locale': path.join(__dirname, 'components/locale'),
|
||||
// Change antd from `index.js` to `.dumi/theme/antd.js` to remove deps of root style
|
||||
antd: require.resolve('./.dumi/theme/antd.js'),
|
||||
antd: path.join(__dirname, 'components'),
|
||||
},
|
||||
extraRehypePlugins: [rehypeAntd],
|
||||
extraRemarkPlugins: [remarkAntd],
|
||||
|
Loading…
Reference in New Issue
Block a user