Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Duplicate stylesheet_link_tag inserted in new rails 8.0 app #161

Open
feral-grimalkin opened this issue Nov 9, 2024 · 0 comments
Open

Comments

@feral-grimalkin
Copy link

New rails 8.0 app generated with rails new test8 -c postcss (or bootstrap, or bulma) contains the following lines in application.html.erb:

<%# Includes all stylesheet files in app/assets/stylesheets %>
<%= stylesheet_link_tag :app, "data-turbo-track": "reload" %>
<%= javascript_importmap_tags %>
<%= stylesheet_link_tag "application", "data-turbo-track": "reload" %>

The first stylesheet_link_tag comes from rails itself, the second one comes from cssbundling-rails, likely introduced by this PR #15, so the application.css file gets included twice.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant