1.0.0 • Published 3 years ago

@tanshenghu/umi-plugin-antd-icon-config v1.0.0

Weekly downloads
-
License
MIT
Repository
github
Last release
3 years ago

umi-plugin-antd-icon-config

NPM version NPM downloads

Convert icon string to antd@4

特别注意,此包必须跟 @tanshenghu/web-cmpt 结合起来一起使用,里面加入了菜单antd懒加载图标与自定义懒加载图标功能,否则项目会跑不起来

由于 pro-layout 支持在 config 中 icon:string 的配置,但是在 4.0 中不推荐这样的用法。这个插件可以将其转化,不再引入全量的 icon。

Install

# or yarn
$ npm install
$ npm run build --watch
$ npm run start

Usage

Configure in .umirc.js,

export default {
  plugins: [['umi-plugin-antd-icon-config', {}]],
};

Options

TODO

LICENSE

MIT