Convention over configuration for using Vite in Ruby apps
npm install vite-plugin-rubyConvention over configuration for Ruby projects using Vite
[vite_rails]: https://github.com/ElMassimo/vite_ruby/tree/main/vite_rails
[vite_ruby]: https://github.com/ElMassimo/vite_ruby/tree/main/vite_ruby
[vite_hanami]: https://github.com/ElMassimo/vite_ruby/tree/main/vite_hanami
[configuration options]: https://github.com/ElMassimo/vite_ruby
Normally you wouldn't need to install it manually, instead follow the instructions
of [vite_rails][vite_rails], [vite_hanami][vite_hanami], or [vite_ruby][vite_ruby], which will install this plugin for you.
Else:
``bash`
npm i vite-plugin-ruby # yarn add vite-plugin-ruby
Add it to your plugins in vite.config.js
`ts
// 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.
- vite-plugin-components: Picked up that neat pnpm setup.
This library is available as open source under the terms of the MIT License.