Skip to content

Commit

Permalink
Revert "Added note about Tailwind"
Browse files Browse the repository at this point in the history
This reverts commit b0dd46f.
  • Loading branch information
kirillplatonov committed Apr 30, 2024
1 parent b0dd46f commit e88b428
Showing 1 changed file with 0 additions and 8 deletions.
8 changes: 0 additions & 8 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -79,14 +79,6 @@ Rails.application.configure do
end
```

When you use Tailwind, it will also listen for changes in views/helpers/javascript, and then generate new CSS file in `app/assets/builds` folder. This can cause multiple reloads and the scroll position will be lost. To avoid that, you can skip listening to the folders that are used by Tailwind:
```ruby
# ...
config.hotwire_livereload.skip_listen_paths << Rails.root.join("app/helpers")
config.hotwire_livereload.skip_listen_paths << Rails.root.join("app/javascript")
config.hotwire_livereload.skip_listen_paths << Rails.root.join("app/views")
```

Instead of a direct ActionCable websocket connection, you can reuse the existing TurboStream websocket connection and send updates using standard turbo-streams:
```ruby
# config/environments/development.rb
Expand Down

0 comments on commit e88b428

Please sign in to comment.