rsuite / webpack-multiple-themes-compile

Overwrite webpack config to output multiple themes css.
https://github.com/rsuite/rsuite/tree/master/examples/custom-multiple-themes
MIT License
16 stars 4 forks source link

有 sass版本吗? #17

Open baoxiangyang opened 3 years ago

baoxiangyang commented 3 years ago

有 sass版本吗?

hiyangguo commented 3 years ago

原理是差不多的。我空了补一下sass 的例子。

JustusNBB commented 1 year ago

I wasn't able to find an example (configuration or test) yet. Sass is indeed similar to less, however it uses $kebab-var instead of @kebab-var. Need a new switching option here too it seems: https://github.com/rsuite/webpack-multiple-themes-compile/blob/f1e37b1e50e5c305cab616dd506a80282a2fc677/src/generate-themes.js#L33

I'll be looking to solve this similarly to this approach first instead: https://stackoverflow.com/questions/55679111/webpack-4-create-multiple-theme-css-files