跳转到主要内容
目录57
-
第 1 章
Blog
12 页
-
1.1
Announcing Vite 2.0
February 16, 2021 - Check out the Vite 3.0 announcement
Today we are excited to announce the official re...
2 小时前
-
1.2
Vite 3.0 is out!
July 23, 2022 - Check out the Vite 4.0 announcement
In February last year, Evan You released Vite 2. Since ...
2 小时前
-
1.3
Vite 4.3 is out!
April 20, 2023
Quick links:
Docs: English, 简体中文, 日本語, Español, Português
Vite 4.3 Changelog
Performance Imp...
2 小时前
-
1.4
Vite 4.0 is out!
December 9, 2022 - Check out the Vite 5.0 announcement
Vite 3 was released five months ago. npm downloads p...
2 小时前
-
1.5
Vite 5.1 is out!
February 8, 2024
Vite 5 was released last November, and it represented another big leap for Vite and the ec...
2 小时前
-
1.6
Vite 5.0 is out!
November 16, 2023
Vite 4 was released almost a year ago, and it served as a solid base for the ecosystem. n...
2 小时前
-
1.7
Vite 6.0 is out!
November 26, 2024
Today, we're taking another big step in Vite's story. The Vite team, contributors, and ec...
2 小时前
-
1.8
Vite 7.0 is out!
June 24, 2025
We're happy to share the release of Vite 7! It has been 5 years since Evan You sent the first...
2 小时前
-
1.9
Vite 8.1 is out!
June 23, 2026
Vite 8 was released in March with a single unified bundler powered by Rolldown, opening the d...
2 小时前
-
1.10
Vite 8 Beta: The Rolldown-powered Vite
December 3, 2025
TL;DR: The first beta of Vite 8, powered by Rolldown, is now available. Vite 8 ships signi...
2 小时前
-
1.11
Vite 8.0 is out!
March 12, 2026
We're thrilled to announce the stable release of Vite 8! When Vite first launched, we made a...
2 小时前
-
1.12
Cloudflare supports Vite's mission
June 4, 2026
Today marks the start of a new stage for Vite. VoidZero is joining Cloudflare. You can read th...
2 小时前
-
第 2 章
Changes
6 页
-
2.1
HMR `hotUpdate` Plugin Hook
::: tip Feedback
Give us feedback at Environment API feedback discussion
:::
We're planning to deprecate th...
2 小时前
-
2.2
Breaking Changes
List of breaking changes in Vite including API deprecations, removals, and changes. Most of the changes bel...
2 小时前
-
2.3
Move to Per-environment APIs
::: tip Feedback
Give us feedback at Environment API feedback discussion
:::
Multiple APIs from
ViteDevSer...
2 小时前
-
2.4
Shared Plugins during Build
::: tip Feedback
Give us feedback at Environment API feedback discussion
:::
See Shared plugins during buil...
2 小时前
-
2.5
SSR Using `ModuleRunner` API
::: tip Feedback
Give us feedback at Environment API feedback discussion
:::
server.ssrLoadModule has been ...
2 小时前
-
2.6
`this.environment` in Hooks
::: tip Feedback
Give us feedback at Environment API feedback discussion
:::
Before Vite 6, only two enviro...
2 小时前
-
19
Acknowledgements
Acknowledgements
Vite is built upon the shoulders of giants. We would like to express our gratitude to all ...
2 小时前
-
第 3 章
Config
8 页
-
3.1
Build Options
Unless noted, the options in this section are only applied to build.
build.target
Type:
string | string[]
...
2 小时前
-
3.2
Dep Optimization Options
Related: Dependency Pre-Bundling
Unless noted, the options in this section are only applied to the dependen...
2 小时前
-
3.3
Configuring Vite
When running
vite from the command line, Vite will automatically try to resolve a config file named
vite....
2 小时前
-
3.4
Preview Options
Unless noted, the options in this section are only applied to preview.
preview.host
Type:
string | boolean...
2 小时前
-
3.5
Server Options
Unless noted, the options in this section are only applied to dev.
server.host
Type:
string | boolean
Defa...
2 小时前
-
3.6
Shared Options
Unless noted, the options in this section are applied to all dev, build, and preview.
root
Type:
string
De...
2 小时前
-
3.7
SSR Options
Unless noted, the options in this section are applied to both dev and build.
ssr.external
Type:
string[] |...
2 小时前
-
3.8
Worker Options
Unless noted, the options in this section are applied to all dev, build, and preview.
worker.format
Type:
...
2 小时前
-
28
blog
sidebar: false
editLink: false
outline: false
Latest From the Vite Blog
2 小时前
-
第 4 章
Guide
24 页
-
4.1
Environment API for Frameworks
:::info Release Candidate
The Environment API is generally in the release candidate phase. We'll maintain s...
2 小时前
-
4.2
Using `Environment` Instances
:::info Release Candidate
The Environment API is generally in the release candidate phase. We'll maintain s...
2 小时前
-
4.3
Environment API for Plugins
:::info Release Candidate
The Environment API is generally in the release candidate phase. We'll maintain s...
2 小时前
-
4.4
Environment API for Runtimes
:::info Release Candidate
The Environment API is generally in the release candidate phase. We'll maintain s...
2 小时前
-
4.5
Environment API
:::info Release Candidate
The Environment API is generally in the release candidate phase. We'll maintain s...
2 小时前
-
4.6
HMR API
:::tip Note
This is the client HMR API. For handling HMR update in plugins, see handleHotUpdate.
The manual...
2 小时前
-
4.7
JavaScript API
Vite's JavaScript APIs are fully typed, and it's recommended to use TypeScript or enable JS type checking i...
2 小时前
-
4.8
Plugin API
Vite plugins extends Rolldown's plugin interface with a few extra Vite-specific options. As a result, you c...
2 小时前
-
4.9
Static Asset Handling
Related: Public Base Path
Related:
assetsInclude config option
Importing Asset as URL
Importing a static a...
2 小时前
-
4.10
Backend Integration
:::tip Note
If you want to serve the HTML using a traditional backend (e.g. Rails, Laravel) but use Vite fo...
2 小时前
-
4.11
Building for Production
When it is time to deploy your app for production, simply run the
vite build command. By default, it uses ...
2 小时前
-
4.12
Command Line Interface
Dev server
vite
Start Vite dev server in the current directory.
vite dev and
vite serve are aliases for
...
2 小时前
-
4.13
Dependency Pre-Bundling
When you run
vite for the first time, Vite prebundles your project dependencies before loading your site l...
2 小时前
-
4.14
Env Variables and Modes
Vite exposes certain constants under the special
import.meta.env object. These constants are defined as gl...
2 小时前
-
4.15
Features
At the very basic level, developing using Vite is not that different from using a static file server. Howev...
2 小时前
-
4.16
Getting Started
Overview
Vite (French word for "quick", pronounced
/viːt/, like "veet") is a build tool that aims to provi...
2 小时前
-
4.17
Migration from v7
If you are migrating from
rolldown-vite, the technical preview release for Rolldown integrated Vite for v6...
2 小时前
-
4.18
Performance
While Vite is fast by default, performance issues can creep in as the project's requirements grow. This gui...
2 小时前
-
4.19
Project Philosophy
Lean Extendable Core
Vite aims to support the most common patterns to build Web apps out-of-the-box, while ...
2 小时前
-
4.20
Server-Side Rendering (SSR)
:::tip Note
SSR specifically refers to front-end frameworks (for example React, Preact, Vue, and Svelte) th...
2 小时前
-
4.21
static-deploy
Deploying a Static Site
The following guides are based on some shared assumptions:
You are using the defaul...
2 小时前
-
4.22
Troubleshooting
See Rollup's troubleshooting guide for more information too.
If the suggestions here don't work, please try...
2 小时前
-
4.23
Using Plugins
Vite can be extended using plugins, which are based on Rollup's well-designed plugin interface with a few e...
2 小时前
-
4.24
Why Vite
As web applications have grown in size and complexity, the tools used to build them have struggled to keep ...
2 小时前
-
53
Vite
2 小时前
-
第 5 章
Plugins
1 页
-
5.1
Plugins
:::tip NOTE
Vite aims to provide out-of-the-box support for common web development patterns. Before searchi...
2 小时前
-
55
5th anniversary of the Vite Team Creation
2 小时前
-
56
releases
Releases
Vite releases follow Semantic Versioning. You can see the latest stable version of Vite in the Vit...
2 小时前
-
57
Meet the Team
2 小时前