This content originally appeared on CodeSource.io and was authored by Prince Chukwudire
In this guide, you will understand the driving mechanisms behind the two commands npm run serve vs npm run dev in vuejs
npm run serve
is basically asking the package manager (npm) to run the command specified under the name serve in the package.json
file.
The same goes for the npm run dev command. It is possible that both execute the same command or different things. The scripts section in the package.json
houses these commands.
"scripts": {
"serve": "[commands to run here]",
"dev": "[commands to run here"
},
The post npm run serve vs npm run dev in vuejs appeared first on CodeSource.io.
This content originally appeared on CodeSource.io and was authored by Prince Chukwudire

Prince Chukwudire | Sciencx (2021-03-06T16:45:48+00:00) npm run serve vs npm run dev in vuejs. Retrieved from https://www.scien.cx/2021/03/06/npm-run-serve-vs-npm-run-dev-in-vuejs/
Please log in to upload a file.
There are no updates yet.
Click the Upload button above to add an update.