umi-plugin-development-kit
v1.0.0
Published
@alitajs/micro
Downloads
2
Readme
umi-plugin-antd-theme-g
umi less主题切换插件(改)
Install
- yarn add umi-plugin-antd-theme-g
config/config.ts
antdTheme:{
themeVariables: ['@brand-primary','@abcd-efg'],
}
| Property | Type | Default | Descript |
| --- | --- | --- | --- |
| antDir | string | - | This is path to antd directory in your node_modules |
| varFile | string | - | Path to your theme related variables file |
| themeVariables | array | ['@primary-color'] | List of variables that you want to dynamically change |
| generateOnce | boolean | false | Everytime webpack will build new code due to some code changes in development, this plugin will run again unless you specify this flag as true
which will just compile your styles once |
| lessScript | boolean | true | Whether to load the less.mins file |
| outputFileName | string | color.less | less var file name |\
参考: https://github.com/alitajs/plugin-theme