0
0
Vueframework~5 mins

Running and building a Vue app - Cheat Sheet & Quick Revision

Choose your learning style9 modes available
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?
Anpm run dev
Bnpm run build
Cnpm start
Dvue serve
Where does Vue put the files after running npm run build?
Asrc folder
Bdist folder
Cnode_modules folder
Dpublic folder
What is the main benefit of hot module replacement (HMR)?
AInstant updates without full page reload
BSmaller build size
CFaster app startup
DBetter SEO
Which file usually contains the scripts to run and build a Vue app?
Amain.js
Bvue.config.js
Cpackage.json
Dindex.html
What does the development server provide besides live reload?
ACode minification
BDatabase connection
CProduction optimization
DModule loading and error overlays
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.