Ruby on Rails 8 with Vite and Tailwind CSS 4
1–4 of 4 posts
Re: Ruby on Rails 8 with Vite and Tailwind CSS 4
#2Re: Ruby on Rails 8 with Vite and Tailwind CSS 4
#3I tried Vite with rails for development once, as you can set it up to automatically reload when any html/CSS/js changes, but in the end I didn't think it was worth the extra hassle of more configuration and dependencies on the JavaScript ecosystem. I personally prefer the simplicity of the "no build" setup with importmaps.
Re: Ruby on Rails 8 with Vite and Tailwind CSS 4
#4I tried Vite with rails for development once, as you can set it up to automatically reload when any html/CSS/js changes, but in the end I didn't think it was worth the extra hassle of more configuration and dependencies on the JavaScript ecosystem. I personally prefer the simplicity of the "no build" setup with importmaps.
But what if you want to use React?
Then just use React. There's nothing stopping you and it's well supported.
You can use either https://github.com/rails/jsbundling-rails
or https://github.com/reactjs/react-rails
Personally would also go with a No Build set up. i.e. https://hotwire.io/ and import maps.