mirror of
https://github.com/ant-design/ant-design.git
synced 2026-02-09 02:49:18 +08:00
fix: settings iconPrefixCls fail (#46627)
* feat: issue-2 * fix: context * feat: demo * feat: issue * Update index.tsx Signed-off-by: 叶枫 <7971419+crazyair@users.noreply.github.com> * Update index.tsx Signed-off-by: 叶枫 <7971419+crazyair@users.noreply.github.com> * Update .dumirc.ts Signed-off-by: 叶枫 <7971419+crazyair@users.noreply.github.com> * Update .dumirc.ts Signed-off-by: 叶枫 <7971419+crazyair@users.noreply.github.com> * Update .dumirc.ts Signed-off-by: 叶枫 <7971419+crazyair@users.noreply.github.com> * feat: alias * feat: issuep --------- Signed-off-by: 叶枫 <7971419+crazyair@users.noreply.github.com>
This commit is contained in:
@@ -1,9 +1,10 @@
|
||||
import { defineConfig } from 'dumi';
|
||||
import path from 'path';
|
||||
import { defineConfig } from 'dumi';
|
||||
import * as fs from 'fs-extra';
|
||||
|
||||
import rehypeAntd from './.dumi/rehypeAntd';
|
||||
import remarkAntd from './.dumi/remarkAntd';
|
||||
import { version } from './package.json';
|
||||
import * as fs from 'fs-extra';
|
||||
|
||||
export default defineConfig({
|
||||
plugins: ['dumi-plugin-color-chunk'],
|
||||
@@ -35,6 +36,8 @@ export default defineConfig({
|
||||
'antd/es': path.join(__dirname, 'components'),
|
||||
'antd/locale': path.join(__dirname, 'components/locale'),
|
||||
antd: path.join(__dirname, 'components'),
|
||||
// https://github.com/ant-design/ant-design/issues/46628
|
||||
'@ant-design/icons$': '@ant-design/icons/lib',
|
||||
},
|
||||
extraRehypePlugins: [rehypeAntd],
|
||||
extraRemarkPlugins: [remarkAntd],
|
||||
|
||||
Reference in New Issue
Block a user