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.
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
| File | Contains | Use For |
|---|---|---|
SKILL.md | Entry point: scope, routing table, and workflow. | Start here. |
docs/main-vite-using-plugins-branch-workflow-guide.md | A 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.text | The 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.text | A 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.text | A 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.text | A 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
- Open the most relevant file under
docs/for the exact documented workflow and wording. - Open
schemas/files for exact structured contracts. - Open
examples/files for concrete requests, commands, snippets, and manifests. - Do not add behavior or configuration that is not present in the attached source files.
Canonical source: https://main.vite.dev/guide/using-plugins