Vue cli4 project running automatically opens the browser

The first method (high priority) is
in package.json and the
Insert picture description here
second method is
in vue.config.js, add open:true to devServer, without vue.config.js, create one yourself

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

Guess you like

Origin blog.csdn.net/weixin_46476460/article/details/112315219