Prompt Buddy logoPrompt Buddy

vite · Vite Docs

Using Plugins | Vite (main branch)

Explains how to integrate and configure plugins within a Vite project, including how to use the plugin API and the plugin registry.

Import to Prompt Buddy

Derived skill

Files assembled from official documentation

Viewing SKILL.md

Using Plugins | Vite (main branch)

Explains how to integrate and configure plugins within a Vite project, including how to use the plugin API and the plugin registry.

When To Use

Use when you need to extend Vite's core functionality, integrate third-party build tools, or implement custom transformation logic via the plugin API.

Reference Files

FileContainsUse For
SKILL.mdEntry point: scope, routing table, and workflow.Start here.
docs/main-vite-using-plugins-branch-workflow-guide.mdA guide explaining how to extend Vite using Rollup-compatible plugins, including plugin ordering and conditional application.Questions about a guide explaining how to extend Vite using Rollup-compatible plugins, including plugin ordering and conditional appl...
examples/main-vite-using-plugins-branch-vite-plugin-legacy-install-command.textThe shell command to install the @vitejs/plugin-legacy package as a development dependency.Exact payloads, commands, or snippets shown in The shell command to install the @vitejs/plugin-legacy package as a development dependency.
examples/main-vite-using-plugins-branch-vite-plugin-legacy-config.textA configuration example demonstrating how to integrate the @vitejs/plugin-legacy into a Vite configuration file.Exact payloads, commands, or snippets shown in A configuration example demonstrating how to integrate the @vitejs/plugin-legacy into a Vite configuration file.
examples/main-vite-using-plugins-branch-vite-plugin-configuration.textA JavaScript configuration example demonstrating how to integrate and configure a Rollup plugin within the Vite plugin array.Exact payloads, commands, or snippets shown in A JavaScript configuration example demonstrating how to integrate and configure a Rollup plugin within the Vite plugi...
examples/main-vite-using-plugins-branch-vite-plugin-configuration-rollup-plugin-t.textA configuration example demonstrating how to integrate the rollup-plugin-typescript2 into the Vite plugin array.Exact payloads, commands, or snippets shown in A configuration example demonstrating how to integrate the rollup-plugin-typescript2 into the Vite plugin array.

What This Skill Covers

  • Are you an LLM? You can read better optimized documentation at /guide/using-plugins.md for this page in Markdown format
  • Main sections: Adding a Plugin ​, Finding Plugins ​, Enforcing Plugin Ordering ​, Conditional Application ​, Building Plugins ​.

Workflow

  1. Open the most relevant file under docs/ for the exact documented workflow and wording.
  2. Open schemas/ files for exact structured contracts.
  3. Open examples/ files for concrete requests, commands, snippets, and manifests.
  4. Do not add behavior or configuration that is not present in the attached source files.

Canonical source: https://main.vite.dev/guide/using-plugins