agneym / preact-cli-tailwind

Preact CLI Plugin that helps add Tailwind CSS to your project
MIT License
32 stars 4 forks source link

Putting tailwind classes on html elements in preact jsx doesn't render the class? #13

Closed algoflows closed 3 years ago

algoflows commented 3 years ago

Hi guys,

Quick question.

Placing styles in the style.css file seems to work as shown below... however if I place tailwind classes in the jsx on an element the classes don't get applied?

image

you see below green doesn't get applied while placing the class directly in the jsx... Is this a bug, or was this by design?

image

agneym commented 3 years ago

I'm not sure what the issue is, can you make me a reproducible example?

algoflows commented 3 years ago

Hey buddy need to check if I still have the repo, but basically I could add tailwind classes within the jsx, it wouldn't work. I try again with a fresh clone and see if the issue persists :).

agneym commented 3 years ago

Here is what you have to be doing: https://github.com/agneym/preact-cli-tailwind-example

Feel free to repoen the issue.