Published on

Installation 💿


Add this line to your site’s Gemfile:

gem 'jekyll-vite'

Then, run:

bundle install
bundle exec vite install

This will add the plugin in _config.yml:

  - jekyll/vite

It will also generate a sample setup in _layouts/default.html (if it exists):

  <!-- meta tags, etc -->
  {% vite_client_tag %}
  {% vite_javascript_tag application %}

If you are using a theme such as minima, you will want to provide a custom head with these liquid tags. Or use a starter template

It also: