Skip to content
Discussion options

You must be logged in to vote

Since it starts working when you copy the app to another folder, check whether the original path is git-ignored. Tailwind v4's automatic source detection skips anything matched by .gitignore. That includes .gitignore files in parent directories and your global gitignore (core.excludesFile), not just the one in your project.

From the app folder, run:

git check-ignore -v app/app.vue

If it prints a rule, that rule is why the classes aren't generated. Remove or narrow that rule, or register the folder explicitly in your CSS, because explicit sources are scanned even when ignored:

@import "tailwindcss";
@source "./app";

Replies: 4 comments 4 replies

Comment options

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

Comment options

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

Comment options

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

Answer selected by JaeTLDR
Comment options

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Help
Labels
None yet
5 participants
Converted from issue

This discussion was converted from issue #20742 on November 22, 2026 12:37.