search

Home  >  Q&A  >  body text

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.

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_u93986phpcn_u939862352 days ago1614

reply all(1)I'll reply

  • 亚连

    亚连2018-06-12 09:16:45

    Maybe it’s because of your configuration file?

    reply
    0
  • Cancelreply