-
I'm trying to setup tailwind 4.1.8 in Vite app. I followed the docs in https://tailwindcss.com/docs/installation/using-vite . It does not want to apply styles no matter what I do. Here's my config files and the styles I am trying to apply package.json :
vite.confing.js :
index.css :
main.jsx :
Output : ![]() I also tried using @tailwindcss/cli and it's still the issue. The output file is not generating new CSS no matter what class I write in the source files. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
Ok, so I got to solve the problem in weird way. For some reason, tailwind v4 only works if I initialize git in the root directory. Can I report this as bug? I don't that's a good solution for it. |
Beta Was this translation helpful? Give feedback.
Ok, so I got to solve the problem in weird way. For some reason, tailwind v4 only works if I initialize git in the root directory. Can I report this as bug? I don't that's a good solution for it.