-
Hi, i'm trying to add classes to a safelist for purgecss, like this:
This is because these classes are added as a php value from a Wordpress ACF field, like this: So they are stored in the database.. The classes don't exist in my code and are not found by purgecss.. The safelist works, but only with JIT mode turned off. Same issue is described here: tailwindlabs/tailwindcss#2829 |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
You can add those class names to the |
Beta Was this translation helpful? Give feedback.
-
Hi Jeffrey, Just found out that this also seems to work:
So not wrapping the safelist in an options container. |
Beta Was this translation helpful? Give feedback.
Hi Jeffrey,
Just found out that this also seems to work:
So not wrapping the safelist in an options container.