Skip to content

"git init" required for Tailwind v4/Vite class detection? #18405

Answered by wongjn
JoshAllenJones asked this question in Help
Discussion options

You must be logged in to vote

You may have some .gitignore (or equivalent) in the file system above the project root. Tailwind's automatic scanner uses git ignore rules to determine what files to scan. When you initialize a repo with git init, this creates a "boundary" to stop Tailwind's scanner from searching above the project root for git ignore rules.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@JoshAllenJones
Comment options

Answer selected by JoshAllenJones
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Help
Labels
None yet
2 participants