Reference: http://www.browsersync.cn/#install
First global installation BROWSERSYNC:NPM install-g Browser-sync
Second run under project folder: Browser-sync start--server--files "css/*.css, *.html"
For listening to CSS and HTML files, it is best to have an index-named HTML file under this folder
After the run is complete, the following page jumps out:
My URL is I have been set up, the display is the computer IP, the address bar default is actually displayed localhost, if you change it to their own computer port number needs to be set inside the settings.
Change the port number 3000, such as 3001, will jump to the settings page:
Then click here:
Then enter the address of an item you want to see:
Send this address bar to the phone, as long as it is within the same LAN, you can view this item on the phone
Vue uses mobile phones to browse its own projects