vue-cli-service build app for deployment code example Example 1: run vue project by npm npm run serve Example 2: serve a vue project cd my-app npm run serve