Tailwind v4 @source directive ignores subdirectories with .gitignore #15452
Open
Description
What version of Tailwind CSS are you using?
v4.0.0-beta.8
What build tool (or framework if it abstracts the build tool) are you using?
None, using CLI
What version of Node.js are you using?
v20.18.1
What browser are you using?
N/A
What operating system are you using?
tested on macOS and Linux
Reproduction URL
https://github.com/jhh/tailwind-gitignore
Describe your issue
Adding a .gitignore file to a directory referenced by a @source directive in a Tailwind CSS source file causes the referenced directory to be ignored.
I discovered this because the uv Python packaging tool creates a .gitignore
in the .venv
directory it uses and I couldn't @source
a template directory within it. Manually deleting .venv/.gitigore
fixes the issue.
Metadata
Assignees
Labels
No labels