vue cli4项目运行自动打开浏览器

第一种方法(优先级高)
在package.json中
在这里插入图片描述
第二种方法
在vue.config.js中,devServer加open:true ,没有vue.config.js,自己创建一个

module.exports = {
    
    
    devServer: {
    
    
        open: true
    }
}

猜你喜欢

转载自blog.csdn.net/weixin_46476460/article/details/112315219