mzohaibqc / antd-theme-webpack-plugin

A webpack plugin for Dynamic theme generation for Ant Design

Home Page:https://mzohaibqc.github.io/antd-theme-webpack-plugin/index.html

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Is there a way to use it in umi project?

dreamerblue opened this issue · comments

commented

umi is a powerful framework for antd and dva users.

Now I'm using umi to develop and I don’t know is there a way to use the antd-theme-webpack-plugin in umi? The ability to modify less var dynamically is really important for our projects.

@dreamerblue You can use core script instead of webpack plugin. Use this https://github.com/mzohaibqc/antd-theme-generator. Have a look at examples.
Here is sample code to generate color.less https://github.com/mzohaibqc/antd-theme-generator/blob/master/examples/create-react-app/color.js