Put in order · Vue.js course · Module 1: Vue and Vite

Advanced: Vite development workflow

Arrange the typical Vite workflow from development to production:

Items to put in order

  • npm run build (production compilation)
  • npm run dev (start the development server)
  • npm run preview (test the production version)
  • Edit code in .vue components
  • HMR automatically updates the browser
Show the answer

Correct order:

  1. npm run dev (start the development server)
  2. Edit code in .vue components
  3. HMR automatically updates the browser
  4. npm run build (production compilation)
  5. npm run preview (test the production version)