Skip to content

Rails includes the unprocessed CSS file in the HTML causing a 404 error #175

Open
@j127

Description

@j127

When I start a Rails app with this command, it causes a 404 error by default, because it's loading the unprocessed application.tailwind.css file in the browser, which tries to do an @import "tailwindcss";.

Here's a repo that reproduces the problem. I wrote notes in each of the four commits.

It also shows bug #169 (where Bun is used even when yarn is managing the project), which I think is critical, because it breaks projects created with the rails new command.

Screenshots in Firefox:

Image

Image

The contents of that file that is served to the browser:

@import "tailwindcss";

The actual processed Tailwind code is in the other CSS file above that raw one.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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

        Participants

        @j127

        Issue actions

          Rails includes the unprocessed CSS file in the HTML causing a 404 error · Issue #175 · rails/cssbundling-rails