jekyll-vite

jekyll-vite

⚡️🩸 Use Vite.js in Jekyll as your assets pipeline


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 ⚡️

  • ⚡️ Blazing fast hot reload
  • 📦 Zero-config builds
  • 🎨 Use your favorite tools (TypeScript, Tailwind CSS, etc.)

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

  • Jekyll — Even after all this time, it's still a great static site generator.
  • Vite.js — Frontend tooling with a focus on the developer experience.

License

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