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:
叶枫
2023-12-27 13:57:51 +08:00
committed by GitHub
parent 5c52512467
commit e3c4de502c

View File

@@ -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],