SolidZORO / next-plugin-antd-less

🎩 Use Antd (Less) with Next.js v12, Zero Dependency on other Next-Plugins.
MIT License
345 stars 48 forks source link

How to prevent overriding the rules defined in global.scss #25

Closed legenddaniel closed 3 years ago

legenddaniel commented 3 years ago

Hi SolidZORO,

Thank you for your great plugin. I have changed the default variables but my styles defined in global.scss are overrided by the re-compiled antd styles. Before it was overriding the default antd styles.

It means new-antd.less > global.scss > antd.less.

Is there any way to avoid this?

SolidZORO commented 3 years ago

maybe you can write a node batch js file, every run yarn dev, hook this js, copy all new-antd.less (vars) > global.scss.