browsersync检测的静态页面只能用index.html命名,用demo.html就不能实时同步,检测动态页面的时候,比如wamp环境下,用browsersync能打开页面,但不能实现同步
静态页面用的命令(目录切换到文件所在目录)
browser-sync start --server --files "*.html"(只能用index.html命名,用demo.html就不能实时同步)
wamp环境下命令用的是
rowser-sync start --proxy "test.com" "test/*.html"
请问老师,什么原因,谢谢
Copyright 2014-2025 https://www.php.cn/ All Rights Reserved | php.cn | 湘ICP备2023035733号
可能是你配置文件的原因吧