Skip to content
Discussion options

You must be logged in to vote

It looks like the issue is caused by the .gitignore rule containing *.

When * is present in .gitignore, it ignores all files in the project directory, which can interfere with build tools and watchers. Tailwind CLI relies on file watching to detect changes in your content paths (like .html templates). If everything is ignored, the watcher may detect file changes but fail to properly process or write the generated CSS.

Fix

Update your .gitignore so it does not ignore everything.

Instead of:

*

use something like:

# Ignore Python virtual environment
venv/
__pycache__/

# Ignore node modules
node_modules/

# Ignore build output if needed
dist/

After fixing .gitignore

Run Tailwind again:

npx t…

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by KuroKiriha
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