Ignore Rails runtime dirs in Tailwind source scanning#609
Open
nehanakrani wants to merge 1 commit intorails:mainfrom
Open
Ignore Rails runtime dirs in Tailwind source scanning#609nehanakrani wants to merge 1 commit intorails:mainfrom
nehanakrani wants to merge 1 commit intorails:mainfrom
Conversation
Member
|
@nehanakrani Thanks for opening this pull request. There's a bit of history here, and I'm not sure that this pull request addresses the issue. The original bug report on this project is #491 as you noted in the description. That issue references an upstream issue tailwindlabs/tailwindcss#15684 which as far as I know is still unresolved. I attempted to test the approach in this PR by:
The contents of And the original problem still manifests: when I make a request to the development server, and the log is appended-to, then I see tailwind kick off a scan: Can you help me understand:
Thank you! |
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.
This excludes Rails runtime directories from the default Tailwind source scan.
Tailwind watches generated files under directories like
log,tmp, andstorageby default, which can trigger unnecessary rebuilds in development. The default generatedapplication.cssnow opts those directories out with@source not.Fixes #491.
Tests:
bundle exec bin/test