rails_vite

0.0.6 • Public • Published

RailsVite

Rails Frontend Develop suit Make you so happy Use Vite, Inspired by webpacker, But more powerful:

  • for Engine develop: you can import assets files under app/assets
  • You can put js or css files under app/views, same name as action, which will load automatically.

How to Use

  • Install
    • Add gem 'rails_vite' to you gemfile, then bundle it;
    • Run yarn add https://github.com/qinmingyuan/rails_vite add rails_vite to package.json
  • In Production
    • 编译 Asset:env RAILS_ENV=production rake rails_vite:compile
  1. Enjoy it;

License

The gem is available as open source under the terms of the MIT License.

Readme

Keywords

none

Package Sidebar

Install

npm i rails_vite

Weekly Downloads

0

Version

0.0.6

License

MIT

Unpacked Size

8.26 kB

Total Files

15

Last publish

Collaborators

  • mingyuan0715