vue-cli 运行打开浏览器

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

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

 默认打开系统默认浏览器

原文地址:https://www.cnblogs.com/lucio110/p/11187250.html