shari09 / website

http://sharisun.me
MIT License
0 stars 0 forks source link

TailwindCSS jit compiling issue with `:class` #1

Open shari09 opened 3 years ago

shari09 commented 3 years ago

Tailwind css isn't triggered to rebuild the CSS upon :class directives. Sometimes, it even breaks the entire site's CSS.

shari09 commented 3 years ago

https://github.com/tailwindlabs/tailwindcss/issues/4029 Basically, since it's a dynamically generated class name, the purger purges it and safelist is not supported for JIT at the moment so I just resolved with inline-styling.

Need to find a better way to do this.

RIP