ElMassimo / jekyll-vite

⚡️🩸 Use Vite.js in Jekyll as your assets pipeline
https://jekyll-vite.netlify.app/
MIT License
50 stars 6 forks source link
assets jekyll ruby ruby-gem static-site-generator vitejs


Jekyll ➕ Vite.js

Build Status Maintainability Test Coverage Gem Version License

Use Vite.js in Jekyll and enjoy a modern assets pipeline! ⚡️

This integration is powered by Vite Ruby.

Features ⚡️

Why Vite? 🤔

Jekyll does not have an extensible asset pipeline, which limits the amount of integrations that exist for different languages and preprocessors. By default, assets are not fingerprinted which is problematic for caching.

Vite.js has an extensible architecture and is built on top of rollup.js, and as a result there is an active ecosystem of plugins and tooling available. In addition, its no bundling design provides a very fluid authoring experience—changes to your assets are reflected instantly in your browser.

Documentation 📖

The documentation website is built using jekyll-vite.

You can check the source to see an example setup, or visit it to learn how to use jekyll-vite.

Installation 💿

Add this line to your site's Gemfile:

gem 'jekyll-vite'

Then, run:

bundle install
bundle exec vite install

Additional installation instructions are available in the documentation website.

Contact ✉️

Please use Issues to report bugs you find, and Discussions to make feature requests or get help.

Don't hesitate to ⭐️ star the project if you find it useful!

Using it in your site? Always love to hear about it! 😃

Acknowledgements

License

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