
Security News
GPT-6 Astra Attempts Supply Chain Attacks Against Open Source Maintainers in Testing
GPT-6 Astra hits 100% on ExploitBench and finds zero-days autonomously, while independent tests reveal scope violations and monitoring gaps.
@11ty/eleventy-plugin-vite
Advanced tools
A plugin to use Vite as a development server and run Vite to postprocess your Eleventy build.
A plugin to use Vite with Eleventy.
This plugin:
--incremental)npm install @11ty/eleventy-plugin-vite@alpha --save-dev
.eleventy.js Configimport EleventyVitePlugin from "@11ty/eleventy-plugin-vite";
export default function (eleventyConfig) {
eleventyConfig.addPlugin(EleventyVitePlugin);
}
.eleventy.js Config[!NOTE] This plugin is written in ESM, therefore
requireis not possible. If your .eleventy.js config uses CommonJS, make it async and create a dynamic import as shown below.
module.exports = async function (eleventyConfig) {
const EleventyPluginVite = (await import("@11ty/eleventy-plugin-vite")).default;
eleventyConfig.addPlugin(EleventyPluginVite);
};
Read more about ESM vs CommonJS on the Eleventy documentation.
These are the default options of the plugin. There's no need to specify them unless you want to change them.
import EleventyVitePlugin from "@11ty/eleventy-plugin-vite";
export default function (eleventyConfig) {
eleventyConfig.addPlugin(EleventyVitePlugin, {
// Default name of the temp folder
tempFolderName: ".11ty-vite",
// Eleventy Dev Server Options
serverOptions: {
module: "@11ty/eleventy-dev-server",
domDiff: false,
},
// Vite Config
viteOptions: {
clearScreen: false,
appType: "mpa",
server: {
middlewareMode: true,
},
build: {
emptyOutDir: true,
rolldownOptions: {
input: {
// HTML entry points will be injected automatically
// Custom input will be merged
},
},
},
resolve: {
alias: {
// Allow references to `node_modules` directly for bundling.
"/node_modules": path.resolve(".", "node_modules"),
// Note that bare module specifiers are also supported
},
},
},
});
}
View the full list of Vite configuration options. Custom viteOptions will be deeply merged with the defaults.
eleventy-plus-vite by @matthiasott: A starter template using this pluginslinkity by @Holben888: A much deeper and more comprehensive integration with Vite! Offers partial hydration and can use shortcodes to render framework components in Eleventy!vite-plugin-eleventy by @Snugug: Uses Eleventy as Middleware in Vite (instead of the post-processing approach used here)FAQs
A plugin to use Vite as a development server and run Vite to postprocess your Eleventy build.
The npm package @11ty/eleventy-plugin-vite receives a total of 1,454 weekly downloads. As such, @11ty/eleventy-plugin-vite popularity was classified as popular.
We found that @11ty/eleventy-plugin-vite demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 2 open source maintainers collaborating on the project.

Security News
GPT-6 Astra hits 100% on ExploitBench and finds zero-days autonomously, while independent tests reveal scope violations and monitoring gaps.

Product
Socket can now send alerts and supply chain attack notifications to Microsoft Teams, with filters that route the right updates to each channel.

Security News
pnpm 12 rewrites the package manager in Rust, cutting install times by up to 90% while preserving pnpm 11 workflows and lockfiles.