Vue uses mobile phones to browse its own projects

Source: Internet
Author: User

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.