Summary of methods to automatically open the browser after the Vue project is completed

Method 1: package.json (applicable to vue3) 

Find scripts–serve in the file and add --open at the end

Method 2: vue.config.js

Find the vue.config.js file, find devServer, and add the following code open:true

Guess you like

Origin blog.csdn.net/qq_48294048/article/details/124724305