Topic: https://intoli.com/blog/antd-scss-theme-plugin/
hide preview

What's next? verify your email address for reply notifications!

unverified 6y, 52d ago

i have done exactly as mentioned, when i rebuild the project again and again it takes around 8-9 seconds to build the project. and only compiling less files takes time. is it normal build time for antd ?

remark link
hide preview

What's next? verify your email address for reply notifications!

andre 6y, 47d ago

The plugin does a lot of work on the initial render because it has to parse and compile the theme.scss file, extract the variables, inject them into antd's theme file to generate an SCSS theme and make it available to the locally running app. The good news is that this should only happen again when you change the theme file, so it should not affect future re-compilations. If that's not what's happening, there is a recently filed issue about it where we can get to the bottom of things.

hide preview

What's next? verify your email address for reply notifications!

unverified 5y, 99d ago

yarn -D install antd-scss-theme-plugin change to yarn -D add antd-scss-theme-plugin

hide preview

What's next? verify your email address for reply notifications!