-
Notifications
You must be signed in to change notification settings - Fork 4.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Non-existence of .git directory breaks tailwind styles #17080
Comments
Hey! One thing that I can think of if you do not have a current="$PWD"
while [ "$current" != "/" ]; do
if [ -f "$current/.gitignore" ]; then
echo "$current/.gitignore"
fi
current=$(dirname "$current")
done |
I've been trying out the reproduction and it works regardless of the |
On the contrary my .gitignore seems to be ignored, and whenever I commit something Tailwindcss cli echoes ~10 lines of "Done in ms" All I can think of that gets modified during a commit is something inside /.git, a directory that should be ignored I presume. Also directories in .gitignore are still monitored by the tailwindcss cli and not ignored, if I delete a file from an ignored root dir, eg: /.work/ the tailwindcss cli still echoes ~10 lines of "Done in ms" Not 100% related to the op but it's just to let you know maybe something needs to be looked into regarding .git and .gitignore. |
@DrLightman Hey! Mind create a new GitHub issue for this with a reproduction? We don't add any git hooks or interfere with the |
@danielsomerfield Hey! Did you have the chance to look into weather a parent |
I think you're on to something. My project is a combined UI and backend project and so the directory structure is: / I just tried it in a clean directory and all was fine. Then I tried it in a directory that had a .gitignore directory above it and it repro'ed. So, yes, it looks like it only occurs if there is a .gitignore in a parent directory. |
@danielsomerfield What's the content of the |
It looks like virtualenv created a file at some point way upstream that had |
What version of Tailwind CSS are you using?
v4.0.12
What build tool (or framework if it abstracts the build tool) are you using?
For example: postcss-cli 11.0.0, Next.js 15.1.7, Vite 6.1.0
Vite 6.2.1
What version of Node.js are you using?
v22.14.0
What browser are you using?
chrome
What operating system are you using?
macos
Reproduction URL
npm dev
mkdir .git
npm dev
againDescribe your issue
It appears that the existence or non-existence of the .git directory effects the behaviour of the app. If you simply create an empty .git directory, all works. The existence or non existence of .gitignore appears to have no effect.
The text was updated successfully, but these errors were encountered: