Vite is to frontend tooling as Ruby to programming, pure joy! 😍
This repo contains libraries that will allow you to easily integrate Vite in your favourite Ruby framework.
- 💡 Instant server start
- ⚡️ Blazing fast hot reload
- 🚀 Zero-config deployments
- 🤝 Integrated with assets:precompile
- And more!
Visit the documentation website to check out the guides and searchable configuration reference.
Add this line to your application's Gemfile:
gem 'vite_rails' # vite_hanami for Hanami apps, vite_ruby for Rack apps
Then, run:
bundle install
bundle exec vite install
This will generate configuration files and a sample setup.
Additional installation instructions are available in the documentation website.
Restart your web server, and then run bin/vite dev to start the Vite development server.
Visit any page and you should see a printed console output: Vite ⚡️ Ruby
.
For more guides and a full configuration reference, check the documentation website.
Please use Issues to report bugs you find, and Discussions to make feature requests or get help.
Don't hesitate to ⭐️ star the project if you find it useful!
The gem is available as open source under the terms of the MIT License.