Move application.tailwind.css to a dir ignored by propshaft #474
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 file should not be included in the stylesheet link tags served to user agents. But by default, Rails 8 apps add a tag for all CSS files under
app/assets
(courtesy of a Propshaft feature handling a source named:all
), and so this file is being included unintentionally.Going forward, in version 4.x of this gem (which pins to Tailwind v4), the installer will place the file into
app/assets/tailwind
. The upgrader will move it fromapp/assets/stylesheets
toapp/assets/tailwind
.And the gem's railtie adds
app/assets/tailwind
toconfig.assets.excluded_paths
to make sure it doesn't get served up by thestylesheet_link_tags :app
call in the application layout.This is being tested with both Rails 7.2 (without Propshaft) and Rails 8 (with Propshaft) and it looks good.
Fixes #470