4100a51eb8
部署开发环境 / deploy-dev (push) Successful in 2m18s
- 移除手动导入的 Vue 和 Element Plus 相关模块 - 集成 unplugin-auto-import 插件实现自动导入 - 集成 unplugin-vue-components 插件实现组件自动注册 - 添加自动生成的类型声明文件 auto-imports.d.ts 和 components.d.ts - 配置 Element Plus 解析器支持按需导入 - 更新 tsconfig.app.json 包含自动生成的类型文件
web
This template should help get you started developing with Vue 3 in Vite.
Recommended IDE Setup
VS Code + Vue (Official) ( and disable Vetur).
Recommended Browser Setup
- Chromium-based browsers (Chrome, Edge, Brave, etc.):
- Firefox:
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