跳转到主要内容
本章内容24
-
01
Environment API for Frameworks
:::info Release Candidate
The Environment API is generally in the release candidate phase. We'll maintain s...
5 小时前
-
02
Using `Environment` Instances
:::info Release Candidate
The Environment API is generally in the release candidate phase. We'll maintain s...
5 小时前
-
03
Environment API for Plugins
:::info Release Candidate
The Environment API is generally in the release candidate phase. We'll maintain s...
5 小时前
-
04
Environment API for Runtimes
:::info Release Candidate
The Environment API is generally in the release candidate phase. We'll maintain s...
5 小时前
-
05
Environment API
:::info Release Candidate
The Environment API is generally in the release candidate phase. We'll maintain s...
5 小时前
-
06
HMR API
:::tip Note
This is the client HMR API. For handling HMR update in plugins, see handleHotUpdate.
The manual...
5 小时前
-
07
JavaScript API
Vite's JavaScript APIs are fully typed, and it's recommended to use TypeScript or enable JS type checking i...
5 小时前
-
08
Plugin API
Vite plugins extends Rolldown's plugin interface with a few extra Vite-specific options. As a result, you c...
5 小时前
-
09
Static Asset Handling
Related: Public Base Path
Related:
assetsInclude config option
Importing Asset as URL
Importing a static a...
5 小时前
-
10
Backend Integration
:::tip Note
If you want to serve the HTML using a traditional backend (e.g. Rails, Laravel) but use Vite fo...
5 小时前
-
11
Building for Production
When it is time to deploy your app for production, simply run the
vite build command. By default, it uses ...
5 小时前
-
12
Command Line Interface
Dev server
vite
Start Vite dev server in the current directory.
vite dev and
vite serve are aliases for
...
5 小时前
-
13
Dependency Pre-Bundling
When you run
vite for the first time, Vite prebundles your project dependencies before loading your site l...
5 小时前
-
14
Env Variables and Modes
Vite exposes certain constants under the special
import.meta.env object. These constants are defined as gl...
5 小时前
-
15
Features
At the very basic level, developing using Vite is not that different from using a static file server. Howev...
5 小时前
-
16
Getting Started
Overview
Vite (French word for "quick", pronounced
/viːt/, like "veet") is a build tool that aims to provi...
5 小时前
-
17
Migration from v7
If you are migrating from
rolldown-vite, the technical preview release for Rolldown integrated Vite for v6...
5 小时前
-
18
Performance
While Vite is fast by default, performance issues can creep in as the project's requirements grow. This gui...
5 小时前
-
19
Project Philosophy
Lean Extendable Core
Vite aims to support the most common patterns to build Web apps out-of-the-box, while ...
5 小时前
-
20
Server-Side Rendering (SSR)
:::tip Note
SSR specifically refers to front-end frameworks (for example React, Preact, Vue, and Svelte) th...
5 小时前
-
21
static-deploy
Deploying a Static Site
The following guides are based on some shared assumptions:
You are using the defaul...
5 小时前
-
22
Troubleshooting
See Rollup's troubleshooting guide for more information too.
If the suggestions here don't work, please try...
5 小时前
-
23
Using Plugins
Vite can be extended using plugins, which are based on Rollup's well-designed plugin interface with a few e...
5 小时前
-
24
Why Vite
As web applications have grown in size and complexity, the tools used to build them have struggled to keep ...
5 小时前