Frontend Joy in Ruby on Rails
summary
ViteRails integration (vite_ruby) lets Rails proxy to a non-blocking Vite dev server that uses Rollup for bundling and esbuild for fast transforms, adds CSS code splitting and preload directives, and provides HMR that updates styles and preserves component state — an example shows changes pushed over a session with 2051 errors fixed without full reloads. It emits a production manifest, extends assets:precompile to output to public, and offers auto build so assets rebuild on change; claims are concrete: much faster incremental HMR than webpack.
AI-written summary · about
chapters (8)
- 0:00Welcome and introduction
- 1:48Why use Vite
- 2:53Hot module replacement benefits
- 4:39Vite Ruby integration
- 6:21Deployment and speed
- 7:02Comparison with other tools
- 9:08Why Vite Ruby stands out
- 9:51Ecosystem growth and future
related talks
33mSpeeding Up Your Front-End: 2016 Version
38mVue.js and Vite Updates
23mRails Frontend Evolution: It Was a Setup All Along
36mFront-End Sadness to Happiness: The React on Rails Story
31mReact.js on Rails
19mMaster the Rails asset pipeline
35mFrontendless Rails frontend
01h 09mRails 3 ...and the real secret to high productivity
