Static pages detected by browsersync can only be named index.html, and demo.html cannot be used for real-time synchronization. When detecting dynamic pages, such as in a wamp environment, browsersync can be used to open the page, but synchronization cannot be achieved.
phpcn_u93986
phpcn_u93986 2018-06-11 21:13:39
0
1
1613

The static pages detected by browsersync can only be named index.html, and demo.html cannot be used for real-time synchronization. When detecting dynamic pages, such as in a wamp environment, browsersync can be used to open the page, but synchronization cannot be achieved

Command for static pages (directory switch to the directory where the file is located)

browser-sync start --server --files "*.html" (can only be named with index.html, use demo.html Real-time synchronization is not possible)

The command used in the wamp environment is

rowser-sync start --proxy "test.com" "test/*.html"

May I ask the teacher, what is the reason, thank you

phpcn_u93986
phpcn_u93986

reply all(1)
亚连

Maybe it’s because of your configuration file?

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template