I’ve been playing around with importmaps-rails, jsbundling-rails and cssbundling-rails. I’m loving this new direction, as it brings us closer to a fully formed dev environment with Hotwire.
The only missing piece for me is live reloading, which seems to come as standard in the SPA world. I just released browsersyncing-rails which drops straight into this ecosystem, with the addition of being able to sync device/browser scroll positions, clicks etc.
The default configuration respects how turbo replaces the body tag, and so instead injects into the head, as well as forwarding headers so that form submissions work as expected. The new stack is a dream to work on with this setup.
I’d quite like this to be an option via rails new
. Interested to get feedback.