DEV Community

loading...

Discussion on: How to Change Between Light and Dark Themes in Ant Design

Collapse
joserfelix profile image
Jose Felix Author

I believe Next.js would work just fine with it. Give it a try and, please, let me know if you have any problems. Cheers 😎

Collapse
hrahimi270 profile image
Hossein Rahimi

I was looking for an approach without using Gulp. Do you think this can be done just by Webpack inside next.config.js?

Thread Thread
joserfelix profile image
Jose Felix Author

Yes, you can even do it with vanilla Javascript!

Thread Thread
hrahimi270 profile image
Thread Thread
joserfelix profile image
Jose Felix Author

It depends on how you decide to do it. If it is with vanilla Javascript (node), check out FS operations. On the other hand, for Webpack check out their documentation on writing a plugin.