Skip to content

Duplicate stylesheet_link_tag inserted in new rails 8.0 app #161

@feral-grimalkin

Description

@feral-grimalkin

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions