简体   繁体   中英

Browser-sync don't reload HTML page automatically, need to manually reload the page

I've been using browser-sync since last many hours and I don't know why but my HTML page don't reload automatically. I just have to reload my page manually every time

browser-sync start --server --index top-nav.html --files="css/*.css"

This is the code I'm running into my CMD, is there something wrong I'm performing into my code. I got so much frustrated after trying so many things for hours but still there is no outcome. 命令截图

你必须使用 watch 选项来观看每一个变化

--watch, -w Watch files

I just solved the problem,

browser-sync start --server --index top-nav.html --files="css/*.css" #Code with problem#

browser-sync start --server --directory --files "*" #Code with solution#

已解决问题截图

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM