vue cli 3.0设置指定端口号运行

  在项目根目录创建vue.config.js文件

module.exports = {
  devServer: {
    port: 3000, // 端口
  },
  // lintOnSave: false // 取消 eslint 验证
}

  运行项目即可


返回目录

posted @ 2019-07-03 09:13  gitByLegend  阅读(10405)  评论(0编辑  收藏  举报