Skip to content

v4.0.0-rc2 - application.tailwind.css is not ignored by propshaft when using :app or :all flag in stylesheet_link_tag helper #477

Closed
@EricGusmao

Description

@EricGusmao

I am using rails 8.0.1, and after following the steps here using V4.0.0-rc2, the behaviour reported at #470 still persists. The script is running fine, the file moved directories, but it still is compiled and served by propshaft.

Image

Image

This happen due to propshaft stylesheet_link_tag helper Reference.

I just noticed the rake task to upgrade just removes the former stylesheet entry and keeps

<%= stylesheet_link_tag :app, "data-turbo-track": "reload" %>

So all the assets that ends with .css are served.

But If you also remove the line above and add (as the install script):

<%= stylesheet_link_tag "tailwind", "data-turbo-track": "reload" %>

The tailwind unprocessed file is ignored and not served.

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