Files
dypid/web
ygxbnet 4100a51eb8
部署开发环境 / deploy-dev (push) Successful in 2m18s
build(vite): 集成自动导入插件优化开发体验
- 移除手动导入的 Vue 和 Element Plus 相关模块
- 集成 unplugin-auto-import 插件实现自动导入
- 集成 unplugin-vue-components 插件实现组件自动注册
- 添加自动生成的类型声明文件 auto-imports.d.ts 和 components.d.ts
- 配置 Element Plus 解析器支持按需导入
- 更新 tsconfig.app.json 包含自动生成的类型文件
2026-06-15 21:50:22 +08:00
..

web

This template should help get you started developing with Vue 3 in Vite.

VS Code + Vue (Official) ( and disable Vetur).

Type Support for .vue Imports in TS

TypeScript cannot handle type information for .vue imports by default, so we replace the tsc CLI with vue-tsc for type checking. In editors, we need Volar to make the TypeScript language service aware of .vue types.

Customize configuration

See Vite Configuration Reference.

Project Setup

pnpm install

Compile and Hot-Reload for Development

pnpm dev

Type-Check, Compile and Minify for Production

pnpm build