This is IMHO best solution to the problem. But I have problems with my builds. Sometimes the builded css is perfectly fine, but sometime is broken, meaning that css is missing classes. I think it's related to my setup only, where I'm using it on ant design project and not all components have separate index.js and dark-theme.less and default-theme.lss. Only the root component has. Anyway I wanted to say thank you for inspiration.
This is IMHO best solution to the problem. But I have problems with my builds. Sometimes the builded css is perfectly fine, but sometime is broken, meaning that css is missing classes. I think it's related to my setup only, where I'm using it on ant design project and not all components have separate index.js and dark-theme.less and default-theme.lss. Only the root component has. Anyway I wanted to say thank you for inspiration.
Antd dynamic packaging will be some troubles. You can use Antd v4, It have css variables.
I want to preserve IE11 compatibility for some time. Anyway I found problem with the plugin. Will post PR.
Thank you very much.