~/talk

Migrating From Vue CLI to Vite

Talkat Connect.Tech 2022 · 2022-11-07..11-09· [vue, frontend-architecture]
slides:none on file

Step-by-step migration from Vue CLI to Vite: remove vue-cli plugins and webpack loaders, install Vite and plugin-vue (or community plugin for Vue 2), replace sass-loader with the preprocessor, copy a minimal vite.config.js with resolve.alias for @, move index.html to project root and import /src/main.js, change scripts to use npm run dev and vite build / vite preview, convert process.env to import.meta.env, add .vue extensions, expect instant HMR and esbuild 0.33s benchmark but watch for custom webpack configs and circular dependencies.

AI-written summary · about

  1. 0:00Introduction and speaker intro
  2. 2:13Why migrate to Vite
  3. 9:11Nine-step migration process
  4. 12:01Step 1: Update dependencies
  5. 15:13Step 2: Modern browser support
  6. 18:23Step 3: Configure Vite
  7. 20:32Step 4: Move index.html
  8. 22:22Step 5: Update scripts
  9. 24:10Step 6: Environment variables
  10. 26:58Step 7: Add .vue extensions
  11. 28:23Step 8: Clean up magic comments
  12. 33:41View School resources
  13. 34:42Q&A on migration challenges
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.