-
|
I have a super simple page I'm trying to style with tailwindcss v4. Running "npx tailwindcss -i content/main.css -o public/main.css" works, but none of the classes I'm using are in the main.css file. I tried chmoding my index.html file to 0, and I do get an error, so I think the CLI is at least opening the file. I've also tried messing around with the source() function in the @include statement, but never got it to work. Is there a way I can debug this? I'm not super experienced with this kind of thing either, so it could easily be something I've misconfigured. Let me know what you'd like to see. But other than my main.css, I don't really have any config. Here is my main.css as it is: @import "tailwindcss"; |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 6 replies
-
|
Could you provide a project that reproduces the unexpected behavior please? |
Beta Was this translation helpful? Give feedback.
Good grief, I think I found it.
Under my home directory, I have a
.gitignorefile that contains only*. That's what's keeping the tailwindcss cli from processing my index.html. I remove my.gitignorefile, and now it works.I also tried cloning my
v4bugproject under /tmp, and that worked fine.I'm a little confused. The
v4bugdirectory is under git control, and thus I wouldn't think that a.gitignorefile above the "root" would affect things. Maybe tailwindcss is walking up the tree and processing all .gitignore files it finds?If anyone is curious, my
.gitignoreexcludes everything, so that I can track my dotfiles and other things under git, and I have to explicitlygit add ...anything…