美文网首页
运行serve vscode直接打开浏览器

运行serve vscode直接打开浏览器

作者: 43e1f527c136 | 来源:发表于2023-02-01 09:33 被阅读0次

1.在package.json文件下的调试里配置 "serve": "vue-cli-service serve --open"

2.在vue.config.js文件里配置  在difineConfig里配置

devServer:{

    host: 'localhost',

    port: 8080,

  }

相关文章

网友评论

      本文标题:运行serve vscode直接打开浏览器

      本文链接:https://www.haomeiwen.com/subject/nkhihdtx.html