
Product
Socket for Jira Is Now Available
Socket for Jira lets teams turn alerts into Jira tickets with manual creation, automated ticketing rules, and two-way sync.
vite-plugin-ruby
Advanced tools
Convention over configuration for Ruby projects using Vite
Normally you wouldn't need to install it manually, instead follow the instructions of vite_rails, vite_hanami, or vite_ruby, which will install this plugin for you.
Else:
npm i vite-plugin-ruby # yarn add vite-plugin-ruby
Add it to your plugins in vite.config.js
// vite.config.js
import Vue from '@vitejs/plugin-vue' // Example, could be using other plugins.
import ViteRuby from 'vite-plugin-ruby'
export default {
plugins: [
Vue(),
ViteRuby(),
],
};
You can now configure it using config/vite.json, check out the available
configuration options for reference.
This library is available as open source under the terms of the MIT License.
Webpacker is a Rails gem that integrates Webpack with Rails. It provides a similar functionality to vite-plugin-ruby by managing JavaScript, CSS, and other assets in Rails applications. However, Webpacker uses Webpack as the build tool, which can be slower and more complex compared to Vite.
Shakapacker is a fork of Webpacker that aims to provide a more modern and streamlined integration with Rails. It offers similar asset management and HMR capabilities as vite-plugin-ruby but uses Webpack instead of Vite. Shakapacker focuses on improving the developer experience and build performance compared to the original Webpacker.
FAQs
Convention over configuration for using Vite in Ruby apps
The npm package vite-plugin-ruby receives a total of 609,244 weekly downloads. As such, vite-plugin-ruby popularity was classified as popular.
We found that vite-plugin-ruby demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Product
Socket for Jira lets teams turn alerts into Jira tickets with manual creation, automated ticketing rules, and two-way sync.

Company News
Socket won two 2026 Reppy Awards from RepVue, ranking in the top 5% of all sales orgs. AE Alexandra Lister shares what it's like to grow a sales career here.

Security News
NIST will stop enriching most CVEs under a new risk-based model, narrowing the NVD's scope as vulnerability submissions continue to surge.