0.0.2 • Published 3 years ago
vite_rails v0.0.2
Viter
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 'viter'
to you gemfile, then bundle it; - Run
yarn add https://github.com/qinmingyuan/viter
addviter
to package.json
- Add
- In Production
- 编译 Asset:
env RAILS_ENV=production rake viter:compile
- 编译 Asset:
- Enjoy it;
License
The gem is available as open source under the terms of the MIT License.