1.0.0 • Published 3 years ago

umi-plugin-development-kit v1.0.0

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

umi-plugin-antd-theme-g

umi less主题切换插件(改)

Install

  • yarn add umi-plugin-antd-theme-g

config/config.ts

  antdTheme:{
    themeVariables: ['@brand-primary','@abcd-efg'],
  }
PropertyTypeDefaultDescript
antDirstring-This is path to antd directory in your node_modules
varFilestring-Path to your theme related variables file
themeVariablesarray'@primary-color'List of variables that you want to dynamically change
generateOncebooleanfalseEverytime 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
lessScriptbooleantrueWhether to load the less.mins file
outputFileNamestringcolor.lessless var file name\

参考: https://github.com/alitajs/plugin-theme