Vite llms.txt · AI Docs Browser · mdream

[llms.txt Tools](https://mdream.dev/llms-txt/vite/llms-txt)

# Vite llms.txt

Browse Vite documentation as markdown. Click any page in the sidebar to view it, or copy the full llms.txt for your AI tools.

vite.dev/llms.txt

[Raw llms.txt](https://vite.dev/llms.txt) [Raw llms-full.txt](https://vite.dev/llms-full.txt)

Copy Markdown [](https://vite.dev/llms.txt)

llms.txt

Table of Contents

Getting Started

Project Philosophy

Why Vite

Features

Command Line Interface

Using Plugins

Dependency Pre-Bundling

Static Asset Handling

Building for Production

Deploying a Static Site

Env Variables and Modes

Server-Side Rendering (SSR)

Backend Integration

Troubleshooting

Performance

Migration from v7

Breaking Changes

Plugin API

HMR API

JavaScript API

Configuring Vite

Environment API

Using Environment Instances

Environment API for Plugins

Environment API for Frameworks

Environment API for Runtimes

Configuring Vite

Shared Options

Server Options

Build Options

Preview Options

Dep Optimization Options

SSR Options

Worker Options

this.environment in Hooks

HMR hotUpdate Plugin Hook

Move to Per-environment APIs

SSR Using ModuleRunner API

Shared Plugins during Build

5th anniversary of the Vite Team Creation

Acknowledgements

Plugins

Releases

## What is Vite's llms.txt?

Vite publishes an `/llms.txt` file that provides AI systems with a structured index of its documentation. It follows the [llms.txt specification](https://llmstxt.org), organizing links to guides, API references, and tutorials under section headings so that LLMs like ChatGPT, Claude, and Gemini can quickly understand what Vite offers and where to find details.

Issues

Spec

1

Sections

43

Links

3.4 KB

Size

~878

Tokens

Sections: Table of Contents

## Add Vite Docs to Your AI Assistant

Select your tool to see how to add Vite's llms.txt as a documentation source.

Cursor

 Windsurf

 Claude Code

 ChatGPT

 Zed

 Copilot

1. 1

   Open any chat or composer panel
2. 2

   Type @Docs and select "Add new doc"
3. 3

   Paste the URL: https://vite.dev/llms.txt
4. 4

   Wait for the green dot (indexing complete)
5. 5

   Reference @Docs in chat when asking about Vite

Cursor crawls the URL and indexes all subpages. Add a trailing slash to index child pages too.

## Spec Compliance 7 errors

## Frequently Asked Questions

Where is Vite's llms.txt file?

Vite publishes its llms.txt at https://vite.dev/llms.txt. This file provides a structured, markdown-formatted index of Vite's documentation that AI systems can consume to understand the project's APIs, guides, and references.

How do I use Vite's llms.txt with AI coding assistants?

Copy the llms.txt content and paste it into your AI assistant (Cursor, Windsurf, Claude, ChatGPT) as context. This gives the AI an accurate map of Vite's documentation so it can provide better code suggestions and answers about Vite.

What does Vite's llms.txt contain?

Vite's llms.txt contains 1 sections and 43 documentation links in 3.4 KB (~878 tokens). Key sections include Table of Contents.

How many tokens does Vite's llms.txt use?

The concise llms.txt index is approximately 878 tokens (3.4 KB). Most AI assistants can fit this within their context window. For the full expanded documentation, look for an llms-full.txt variant which embeds all content inline.

What is Vite?

Next generation frontend tooling. Vite's llms.txt file helps AI systems understand this by providing a structured overview of its documentation, making it easier for developers to get accurate AI-assisted help when working with Vite.

Can I generate an llms.txt for my own project?

Yes. Use the free llms.txt generator at mdream.dev/tools/llms-txt/generator to crawl your site and produce a spec-compliant llms.txt file. You can also validate existing files with the llms.txt validator.

## Browse More llms.txt Files

[Turborepo High-performance build system for JavaScript](https://mdream.dev/llms-txt/vite/llms-txt/turborepo) [Panda CSS CSS-in-JS with build-time generated styles](https://mdream.dev/llms-txt/vite/llms-txt/panda-css) [Rspack A fast Rust-based web bundler](https://mdream.dev/llms-txt/vite/llms-txt/rspack) [React Spectrum Adobe's collection of libraries and tools for building adaptive, accessible UIs](https://mdream.dev/llms-txt/vite/llms-txt/react-spectrum) [Deno The next-generation JavaScript runtime](https://mdream.dev/llms-txt/vite/llms-txt/deno) [daisyUI The most popular component library for Tailwind CSS](https://mdream.dev/llms-txt/vite/llms-txt/daisyui) [Prettier Opinionated code formatter](https://mdream.dev/llms-txt/vite/llms-txt/prettier) [Ark UI Headless UI components for React, Vue, and Solid](https://mdream.dev/llms-txt/vite/llms-txt/ark-ui)

[View all 99 projects ](https://mdream.dev/llms-txt/vite/llms-txt)

## Related Tools

[<h3>llms.txt Generator</h3>Generate an llms.txt for your own project.](https://mdream.dev/llms-txt/vite/tools/llms-txt/generator) [<h3>llms.txt Validator</h3>Validate your llms.txt against the official spec.](https://mdream.dev/llms-txt/vite/tools/llms-txt/validator)

© 2026 [Harlan Wilton](https://github.com/harlan-zw) · [MIT](https://github.com/harlan-zw/mdream/blob/main/license)

[GitHub](https://github.com/harlan-zw/mdream) [Discord](https://discord.com/invite/275MBUBvgP)