Recall & Review
beginner
What command do you use to start a Vue app in development mode?
You use
npm run dev or yarn dev to start the Vue app in development mode. This runs a local server with hot reload so you can see changes instantly.Click to reveal answer
beginner
What does the
npm run build command do in a Vue project?It creates optimized, minified files ready for production. These files go into the
dist folder and can be deployed to a web server.Click to reveal answer
beginner
Why do we use a local development server when running a Vue app?
A local server lets you see your app in a browser with live updates. It also handles module loading and supports features like hot module replacement.
Click to reveal answer
beginner
Where are the production-ready files stored after building a Vue app?
They are stored in the
dist folder inside your project directory.Click to reveal answer
intermediate
What is hot module replacement (HMR) in Vue development?
HMR updates parts of your app instantly in the browser without a full reload, making development faster and smoother.
Click to reveal answer
Which command starts the Vue app with live reload for development?
✗ Incorrect
npm run dev starts the development server with live reload. npm run build creates production files.
Where does Vue put the files after running
npm run build?✗ Incorrect
The
dist folder contains the optimized production files after building.What is the main benefit of hot module replacement (HMR)?
✗ Incorrect
HMR updates changed modules instantly in the browser without reloading the whole page.
Which file usually contains the scripts to run and build a Vue app?
✗ Incorrect
The
package.json file defines scripts like dev and build for running commands.What does the development server provide besides live reload?
✗ Incorrect
The development server handles module loading and shows errors directly in the browser.
Explain the steps and commands to run a Vue app during development and then prepare it for production.
Think about how you see changes live and then how you get files ready to share.
You got /4 concepts.
Describe what hot module replacement (HMR) is and why it helps when running a Vue app.
Imagine editing your app and seeing changes immediately without refreshing.
You got /3 concepts.