How to cleanup SCSS in Nextjs?

Viewed 418

It is many pages and there are some unused. Is there a way to delete all unused by searching the classname? Thank you for help!

1 Answers

Next comes with PostCSS, you can use it to post process your CSS (SCSS). PurgeCSS is a PostCSS plugin that removes unused styles. Also, some CSS frameworks like tailwind, remove unused styles during the build process.

Related