Skip to content

Tailwind live rebuild doesn't work on new application when modifying a view #521

Closed
@sarrietav-dev

Description

@sarrietav-dev

Hello, team,

I’m experiencing an issue with live rebuild not functioning correctly in a new Rails application when modifying a view. Here's how to replicate the issue:

Steps to reproduce:

  1. Create a new Rails project with Tailwind:
    rails new my_project -c tailwind
  2. Generate a Post model:
    rails g model post name:string
  3. Generate a PostsController:
    rails g controller posts_controller index
  4. Run database migrations:
    rails db:migrate
  5. Start the Rails server:
    ./bin/dev
  6. Visit the /posts/index route in the browser.
  7. Modify the app/views/posts/index.html.erb file by adding a new class to a tag.
  8. The browser does not reload, nor does the Tailwind process create a new output file.

Additional information:

I would appreciate any suggestions or workarounds for this issue.

Thank you!

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