0

I have Next.js project that use Tailwind CSS, and I want to make a UI Documentation by iterating over the config from tailwind.config.js.

The problem is, it works on development, but when i try to build on production mode, the classes that i iterate from tailwind.config.js doesn't loaded. It means the classes was purged by purgecss.

How can i whitelist the page that skip to use purgecss? I mean, not safelisting by selector, but by page. Example, i want to whitelist all pages on directory ./src/pages/docs to skip purgecss. Is it possible? I need your help

juliomalves
  • 42,130
  • 20
  • 150
  • 146

0 Answers0