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:
- npm run dev (start the development server)
- Edit code in .vue components
- HMR automatically updates the browser
- npm run build (production compilation)
- npm run preview (test the production version)