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

Fix regex for less #57

Closed sitch closed 3 years ago

SolidZORO commented 3 years ago

Did this solve any problems?

sitch commented 3 years ago

Yes this fixes an issue with building in serverless mode on next.js. Could also just change the regex to be configurable via some setting for better compatibility

austinwalter commented 3 years ago

I can confirm that this fix allowed me to successfully build the project in serverless mode. I was unable to before.

tgmarinho commented 3 years ago

How can I test it in my project? I facing the same issue on Netlify.

tgmarinho commented 3 years ago

add to package.json to test it.

"next-plugin-antd-less": "SolidZORO/next-plugin-antd-less#57/head",
tgmarinho commented 3 years ago

I tested it in my project and it works! It should go to production ASAP ;)

Thanks for helping @sitch 🚀

Solution for now: https://twitter.com/tgmarinho/status/1400213108019314691

SolidZORO commented 3 years ago

@sitch Sorry I'm late testing, just merged and released the new version.