在项目中的package.json文件的scripts块中可以看到新项目的yarn命令集合

"scripts": {
    "serve": "vue-cli-service serve",
    "build": "vue-cli-service build",
    "lint": "vue-cli-service lint"
  },

serve 就是vue项目的启动命令,可以通过修改serve自定义启动命令,如

"scripts": {
    "start": "vue-cli-service serve",
    "serve": "vue-cli-service serve",
    "build": "vue-cli-service build",
    "lint": "vue-cli-service lint"
  },

然后通过yarn start命令即可以运行项目。

Logo

前往低代码交流专区

更多推荐