Vue项目中 端口号、项目自动运行和`eslint`关闭 配置

6次阅读
没有评论

该配置要配置在vue.config.js文件中,

module.exports = {
  // 设置端口号和自动打开
  devServer: {
    // 自动打开浏览器
    open: true,
    port: 8888
  },
  // 关闭ESLint
  lintOnSave:false
}
正文完
 0