rails_vite is a new Vite integration for Rails that works alongside Propshaft without a Rack proxy. It uses a stub file approach: a tiny JS file placed in app/assets/builds/ redirects the browser from Propshaft's world to Vite's dev server, enabling HMR and instant CSS feedback without changing Rails helpers or deploy
Table of contents
Why Vite?The pledgeInertia.js in Rails: a new era of effortless integrationWhat if Rails doesn’t need to know?The migrationWhat about the gem mode?Vite-lizing Rails: get live reload and hot replacement with Vite RubyNow you know how it’s doneSort: