vue设置端口,ip和热启动(浏览器自动打开)
1.在项目下创建vue.config.js
2.在创建的文件内进行配置,如下图
//模块导出
module.exports={
devServer:{
port:8888,
host:'localhost',
open:true//配置浏览器自动启动
}
}
vue设置端口,ip和热启动(浏览器自动打开)
1.在项目下创建vue.config.js
2.在创建的文件内进行配置,如下图
//模块导出
module.exports={
devServer:{
port:8888,
host:'localhost',
open:true//配置浏览器自动启动
}
}