Skip to content

Files

Latest commit

44155fc · Dec 9, 2021

History

History
This branch is 301 commits behind ElMassimo/vite_ruby:main.

vite-plugin-ruby

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
Dec 9, 2021
Dec 9, 2021
Feb 10, 2021
Dec 9, 2021
Feb 25, 2021
Feb 10, 2021
Mar 18, 2021
Dec 9, 2021
Dec 9, 2021
Aug 16, 2021
Feb 10, 2021
Feb 10, 2021

vite-plugin-ruby

Convention over configuration for Ruby projects using Vite


Installation 💿

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

Usage 🚀

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.

Thanks

License

This library is available as open source under the terms of the MIT License.