Running Vue app (Node app)
Before running an app, make sure that package.json includes scripts like the following
"scripts": {
"serve": "vue-cli-service serve",
"build": "vue-cli-service build"
},
so that, the following commands are recognized in cmd.
npm run build : build a project for production
npm run serve : open a default port (8080) and run a project (it invokes an implemented router and compile and deploy the projects to the server)
--> Good thing about this is that the server detects changes in a project and apply them in real time.
--> Good thing about this is that the server detects changes in a project and apply them in real time.
Comments
Post a Comment