搜索

PythonReactSEOPDF
GitHub Skill

vite

Vite next-generation frontend build tool with fast HMR and optimized builds. Use when configuring Vite, adding plugins, working with dev server, or building for production.

sanity-io☆ 8 仓库 Stars3 仓库 Forks

安装与使用

请根据来源仓库和你的 AI 工具说明安装此技能。先阅读技能文件和依赖要求,再添加到工作流。

查看来源 ↗使用指南

技能说明

Vite is a modern build tool for frontend development featuring instant server start with native ES modules, lightning-fast HMR, and optimized production builds using Rolldown/Rollup. It supports TypeScript, JSX, CSS pre-processors out of the box and has a rich plugin ecosystem.

The skill is based on Vite 6.x, generated at 2026-01-28.

Core

Topic Description Reference
Configuration Config file setup, defineConfig, conditional and async configs core-config
CLI Commands Dev server, build, preview commands and options core-cli
Core Features TypeScript, JSX, CSS, HTML processing, JSON handling core-features
Using Plugins Adding, configuring, and ordering plugins core-plugins

Features

Topic Description Reference
CSS Handling CSS modules, pre-processors, PostCSS, Lightning CSS features-css
Static Assets Asset imports, public directory, URL handling features-assets
Glob Import import.meta.glob, dynamic imports, batch loading features-glob-import
Environment Variables .env files, modes, import.meta.env constants features-env
HMR API Hot Module Replacement client API features-hmr
Web Workers Worker imports and configuration features-workers
Dependency Pre-Bundling optimizeDeps, caching, monorepo setup features-dep-bundling

Build

Topic Description Reference
Production Build Build options, browser targets, multi-page apps build-production
Library Mode Building libraries with proper package exports build-library
SSR Server-side rendering setup and configuration build-ssr

Advanced

Topic Description Reference
JavaScript API createServer, build, preview programmatic APIs advanced-api
Plugin API Creating Vite plugins, hooks, virtual modules advanced-plugin-api
Performance Optimization tips for dev server and builds advanced-performance
Backend Integration Integrating Vite with traditional backends advanced-backend

使用示例

查看来源仓库中的使用示例与配置说明。

查看来源 ↗

来源历史

收录时间
2026-03-11
索引更新时间
2026-03-11
Branch
main

收录与同步日期属于本站记录。源码修改历史请查看来源仓库。

GitHub ↗

chat Comments (0)

chat_bubble_outline

No comments yet. Be the first to share your thoughts!