最近更新的页面
Dependency Pre-Bundling
When you run vite for the first time, Vite prebundles your project dependencies before loading y...
Command Line Interface
Dev server vite Start Vite dev server in the current directory. vite dev and vite serve are ali...
Building for Production
When it is time to deploy your app for production, simply run the vite build command. By default...
Backend Integration
:::tip Note If you want to serve the HTML using a traditional backend (e.g. Rails, Laravel) but u...
Static Asset Handling
Related: Public Base Path Related: assetsInclude config option Importing Asset as URL Importing ...
Plugin API
Vite plugins extends Rolldown's plugin interface with a few extra Vite-specific options. As a res...
JavaScript API
Vite's JavaScript APIs are fully typed, and it's recommended to use TypeScript or enable JS type ...
HMR API
:::tip Note This is the client HMR API. For handling HMR update in plugins, see handleHotUpdate. ...
Environment API
:::info Release Candidate The Environment API is generally in the release candidate phase. We'll ...
Environment API for Runtimes
:::info Release Candidate The Environment API is generally in the release candidate phase. We'll ...
Environment API for Plugins
:::info Release Candidate The Environment API is generally in the release candidate phase. We'll ...
Using `Environment` Instances
:::info Release Candidate The Environment API is generally in the release candidate phase. We'll ...
Environment API for Frameworks
:::info Release Candidate The Environment API is generally in the release candidate phase. We'll ...
Worker Options
Unless noted, the options in this section are applied to all dev, build, and preview. worker.form...
SSR Options
Unless noted, the options in this section are applied to both dev and build. ssr.external Type: ...
Shared Options
Unless noted, the options in this section are applied to all dev, build, and preview. root Type: ...
Server Options
Unless noted, the options in this section are only applied to dev. server.host Type: string | bo...
Preview Options
Unless noted, the options in this section are only applied to preview. preview.host Type: string...
Configuring Vite
When running vite from the command line, Vite will automatically try to resolve a config file na...
Dep Optimization Options
Related: Dependency Pre-Bundling Unless noted, the options in this section are only applied to th...