Skip to content
Search

@11ty/eleventy-plugin-vite

lastmod 2024-03-15created 2024-03-151 edits

A plugin to use Vite with Eleventy 2.0+.

  • Runs Vite as Middleware in Eleventy Dev Server (try with Eleventy’s --incremental)
  • Runs Vite build to postprocess your Eleventy build output

Installation

npm install @11ty/eleventy-plugin-vite

.eleventy.js file:

const EleventyVitePlugin = require("@11ty/eleventy-plugin-vite");

module.exports = function(eleventyConfig) {
  eleventyConfig.addPlugin(EleventyVitePlugin);
};

See also

Favorite site

author Zer0 sitemap