Use explicit Tailwind source globs for app PHP, Blade, and JS#3270
Merged
Conversation
Member
|
@kukac7 What is this fixing? |
Contributor
Author
|
@retlehs it has happened to me several times that certain class were not generated, even though they were in the code. what's more, this is also the case in the tailwind doc. |
QWp6t
reviewed
Aug 9, 2025
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Member
|
Pushed a small fix to your branch:
Also updated the PR title and description to better reflect the final change. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
This updates Tailwind
@sourceentries to use explicit recursive globs for Sage’s project structure, while preserving PHP scanning inapp/.Why
Some classes were intermittently missing from generated CSS.
Using explicit file globs makes scan targets clearer and aligns with Tailwind/Laravel guidance, without relying on generated cache files.
Changes
app/:@source "../../app/**/*.php";@source "../**/*.blade.php";@source "../**/*.js";@source "../../../../cache/acorn/framework/views/*.php";(removed)Result
Tailwind scans stable source files (
app, Blade, JS) and avoids environment-dependent cached view paths.