loading...

re: Using TailwindCSS with SvelteJS VIEW POST

TOP OF THREAD FULL DISCUSSION
re: Hey Tom, I haven't tried it yet. It's probably related to the purgecss regex. See more here: tailwindcss.com/docs/controlling-f.... When the clas...
 

Hey,

Yeah you're right it's an issue with the regex. It matches the whole string class:active. I tried to come up with a regex that could handle that but failed miserably! My current solution was to drop that svelte feature and use the classnames package to simplify optional classes.

I think whitelisting would work too, but I'm using tailwindcss so I was adding lots of classes like that. I didn't want have to keep addind lots of little utility classes to a whitelist.

Cheers!

code of conduct - report abuse