Files
.shoudate/demo-vue
砂糖 0d764c8fee build(demo-vue): adjust production build config and add terser
1. 新增terser依赖包用于代码压缩
2. 关闭terser压缩并注释rollup打包配置
3. 修改生产环境的NODE_ENV和API接口地址
2026-05-23 18:47:22 +08:00
..
2026-04-23 17:03:40 +08:00
2026-04-23 17:03:40 +08:00
2026-04-23 17:03:40 +08:00
2026-04-23 17:03:40 +08:00
2026-04-23 17:03:40 +08:00
2026-04-23 17:03:40 +08:00
2026-04-23 17:03:40 +08:00
2026-04-23 17:03:40 +08:00

demo-vue

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

npm install

Compile and Hot-Reload for Development

npm run dev

Type-Check, Compile and Minify for Production

npm run build