Skip to content

Latest commit

 

History

History
19 lines (12 loc) · 524 Bytes

vue.md

File metadata and controls

19 lines (12 loc) · 524 Bytes

quick vue

  1. install node from node download page
  2. npm init vue@3
  3. cd /proj
  4. npm install
  5. npm run dev or npm run build

auto-imports

npm install -D unplugin-auto-import

  1. "vite.config.ts", add import AutoImport from 'unplugin-auto-import/vite'; "defineConfig" -> "plugins", add AutoImport({ imports: ["vue"] }).

  2. "tsconfig.json", "include" add "auto-imports.d.ts".

  3. restart vscode project.

  4. remove import { ... } from "vue".