~/talk

How to Migrate from Vue CLI to Vite

Talkat vuejs.de Conf 2022 · on Wednesday, 2022-10-05· [vue, web-performance]
slides:none on file

Migrates a Vue CLI project by deleting Vue CLI deps like @vue/cli-service and Babel, installing Vite and the appropriate plugin (npm init vite@latest then @vitejs/plugin-vue or vite-plugin-vue2), moving public/index.html to project root, switching env access from process.env to import.meta.env, adding .vue imports or configuring resolve to avoid them (add .vue extensions), removing webpack-only magic comments, and relying on esbuild + native ES modules for millisecond dev starts and near-instant HMR.

AI-written summary · about

  1. 0:00Introduction to Vite
  2. 1:14Vite advantages
  3. 3:24How Vite works
  4. 6:01Migration preparation
  5. 8:55Updating dependencies
  6. 11:15Modern browser support
  7. 13:14Configuring Vite
  8. 14:09Index HTML modification
  9. 15:23Scripts and environment
  10. 17:33Conclusion and resources
~/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.