vue-cli 运行打开浏览器

在配置好项目之后的package.json文件中,找到运行的script,其中“serve”中增加配置“ --open”

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

 默认打开系统默认浏览器

posted @ 2019-07-15 10:02  MaxLucio  阅读(632)  评论(0编辑  收藏  举报