umi-plugin-private-antd-theme

1.0.0 • Public • Published

umi-plugin-antd-theme

NPM version NPM downloads

Usage

Configure in .umirc.js,

export default {
  plugins: [
    [
      'umi-plugin-antd-theme',
      {
        theme: [
          {
            theme: 'dark',
            fileName: 'dark.css',
          },
          {
            fileName: 'mingQing.css',
            modifyVars: {
              '@primary-color': '#13C2C2',
            },
          },
        ],
        // 是否压缩css
        min: true,
        // css module
        isModule: true,
        // 忽略 antd 的依赖
        ignoreAntd: false,
        // 忽略 pro-layout
        ignoreProLayout: false,
        // 不使用缓存
        cache: true,
      },
    ],
  ],
};

you can get config in window.umi_plugin_ant_themeVar

LICENSE

MIT

Dependencies (5)

Dev Dependencies (4)

Package Sidebar

Install

npm i umi-plugin-private-antd-theme

Weekly Downloads

2

Version

1.0.0

License

MIT

Unpacked Size

9.26 kB

Total Files

5

Last publish

Collaborators

  • wwangwimi