跳转到主要内容

章节Vite 官方文档

Guide

24 页更新于 5 小时前

开始阅读

本章内容24

  1. 01 Environment API for Frameworks :::info Release Candidate The Environment API is generally in the release candidate phase. We'll maintain s... 5 小时前
  2. 02 Using `Environment` Instances :::info Release Candidate The Environment API is generally in the release candidate phase. We'll maintain s... 5 小时前
  3. 03 Environment API for Plugins :::info Release Candidate The Environment API is generally in the release candidate phase. We'll maintain s... 5 小时前
  4. 04 Environment API for Runtimes :::info Release Candidate The Environment API is generally in the release candidate phase. We'll maintain s... 5 小时前
  5. 05 Environment API :::info Release Candidate The Environment API is generally in the release candidate phase. We'll maintain s... 5 小时前
  6. 06 HMR API :::tip Note This is the client HMR API. For handling HMR update in plugins, see handleHotUpdate. The manual... 5 小时前
  7. 07 JavaScript API Vite's JavaScript APIs are fully typed, and it's recommended to use TypeScript or enable JS type checking i... 5 小时前
  8. 08 Plugin API Vite plugins extends Rolldown's plugin interface with a few extra Vite-specific options. As a result, you c... 5 小时前
  9. 09 Static Asset Handling Related: Public Base Path Related: assetsInclude config option Importing Asset as URL Importing a static a... 5 小时前
  10. 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. 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. 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. 13 Dependency Pre-Bundling When you run vite for the first time, Vite prebundles your project dependencies before loading your site l... 5 小时前
  14. 14 Env Variables and Modes Vite exposes certain constants under the special import.meta.env object. These constants are defined as gl... 5 小时前
  15. 15 Features At the very basic level, developing using Vite is not that different from using a static file server. Howev... 5 小时前
  16. 16 Getting Started Overview Vite (French word for "quick", pronounced /viːt/, like "veet") is a build tool that aims to provi... 5 小时前
  17. 17 Migration from v7 If you are migrating from rolldown-vite, the technical preview release for Rolldown integrated Vite for v6... 5 小时前
  18. 18 Performance While Vite is fast by default, performance issues can creep in as the project's requirements grow. This gui... 5 小时前
  19. 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. 20 Server-Side Rendering (SSR) :::tip Note SSR specifically refers to front-end frameworks (for example React, Preact, Vue, and Svelte) th... 5 小时前
  21. 21 static-deploy Deploying a Static Site The following guides are based on some shared assumptions: You are using the defaul... 5 小时前
  22. 22 Troubleshooting See Rollup's troubleshooting guide for more information too. If the suggestions here don't work, please try... 5 小时前
  23. 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. 24 Why Vite As web applications have grown in size and complexity, the tools used to build them have struggled to keep ... 5 小时前