在项目根目录下,新建名为 vue.config.js的文件或者找到vue.config.js的文件,添加hot属性即可。

module.exports = {
    devServer : {
        hot:true,//自动保存
        open : true,//自动启动
        port : 8080,//默认端口号
        host : "0.0.0.0"
    }
}

 

相关文章:

  • 2022-12-23
  • 2021-07-10
  • 2021-10-14
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-04-29
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案