Automatically open browser configuration after vue cli4.x project starts

Create in two ways:
the first: add --open to package.json as shown in the figure below;
insert image description here
the second: add open: true to the vue.config.js configuration file
insert image description here
Note: the priority of the first is higher than that of the second, For example, if -open is set in the package.json file and open: false is configured in vue.config.js, the browser will still pop up automatically

Guess you like

Origin blog.csdn.net/weixin_41377835/article/details/106208566