跳转到主要内容

最近更新的页面

Dependency Pre-Bundling

Vite 官方文档 Guide

When you run vite for the first time, Vite prebundles your project dependencies before loading y...

由 壳壳虫 更新于 1 周前

Command Line Interface

Vite 官方文档 Guide

Dev server vite Start Vite dev server in the current directory. vite dev and vite serve are ali...

由 壳壳虫 更新于 1 周前

Building for Production

Vite 官方文档 Guide

When it is time to deploy your app for production, simply run the vite build command. By default...

由 壳壳虫 更新于 1 周前

Backend Integration

Vite 官方文档 Guide

:::tip Note If you want to serve the HTML using a traditional backend (e.g. Rails, Laravel) but u...

由 壳壳虫 更新于 1 周前

Static Asset Handling

Vite 官方文档 Guide

Related: Public Base Path Related: assetsInclude config option Importing Asset as URL Importing ...

由 壳壳虫 更新于 1 周前

Plugin API

Vite 官方文档 Guide

Vite plugins extends Rolldown's plugin interface with a few extra Vite-specific options. As a res...

由 壳壳虫 更新于 1 周前

JavaScript API

Vite 官方文档 Guide

Vite's JavaScript APIs are fully typed, and it's recommended to use TypeScript or enable JS type ...

由 壳壳虫 更新于 1 周前

HMR API

Vite 官方文档 Guide

:::tip Note This is the client HMR API. For handling HMR update in plugins, see handleHotUpdate. ...

由 壳壳虫 更新于 1 周前

Environment API

Vite 官方文档 Guide

:::info Release Candidate The Environment API is generally in the release candidate phase. We'll ...

由 壳壳虫 更新于 1 周前

Environment API for Runtimes

Vite 官方文档 Guide

:::info Release Candidate The Environment API is generally in the release candidate phase. We'll ...

由 壳壳虫 更新于 1 周前

Environment API for Plugins

Vite 官方文档 Guide

:::info Release Candidate The Environment API is generally in the release candidate phase. We'll ...

由 壳壳虫 更新于 1 周前

Using `Environment` Instances

Vite 官方文档 Guide

:::info Release Candidate The Environment API is generally in the release candidate phase. We'll ...

由 壳壳虫 更新于 1 周前

Environment API for Frameworks

Vite 官方文档 Guide

:::info Release Candidate The Environment API is generally in the release candidate phase. We'll ...

由 壳壳虫 更新于 1 周前

Worker Options

Vite 官方文档 Config

Unless noted, the options in this section are applied to all dev, build, and preview. worker.form...

由 壳壳虫 更新于 1 周前

SSR Options

Vite 官方文档 Config

Unless noted, the options in this section are applied to both dev and build. ssr.external Type: ...

由 壳壳虫 更新于 1 周前

Shared Options

Vite 官方文档 Config

Unless noted, the options in this section are applied to all dev, build, and preview. root Type: ...

由 壳壳虫 更新于 1 周前

Server Options

Vite 官方文档 Config

Unless noted, the options in this section are only applied to dev. server.host Type: string | bo...

由 壳壳虫 更新于 1 周前

Preview Options

Vite 官方文档 Config

Unless noted, the options in this section are only applied to preview. preview.host Type: string...

由 壳壳虫 更新于 1 周前

Configuring Vite

Vite 官方文档 Config

When running vite from the command line, Vite will automatically try to resolve a config file na...

由 壳壳虫 更新于 1 周前

Dep Optimization Options

Vite 官方文档 Config

Related: Dependency Pre-Bundling Unless noted, the options in this section are only applied to th...

由 壳壳虫 更新于 1 周前