Complete the code to run a Vue app using the CLI.
npm run [1]Use npm run serve to start the development server and run the Vue app locally.
Complete the code to build the Vue app for production.
npm run [1]Use npm run build to create optimized files for production deployment.
Fix the error in the command to run the Vue app.
npm run [1]The correct command to run the Vue app is npm run serve. 'start' or 'run' are not valid Vue CLI commands.
Fill both blanks to create a build command with a custom output directory.
vue-cli-service build --dest [1] --mode [2]
The --dest option sets the output folder, commonly 'dist'. The --mode option sets the environment mode, usually 'production' for builds.
Fill all three blanks to create a script in package.json for running the Vue app in development mode.
"scripts": { "[1]": "vue-cli-service [2] --port [3]" }
The script name is usually 'serve'. The command is 'vue-cli-service serve' to run the dev server. The default port is 8080.