Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

When I don't touch my project, the terminal often displays [Browsersync] File event [change] #163

Open
aboutjquery opened this issue Jan 31, 2025 · 1 comment

Comments

@aboutjquery
Copy link

I added npm run watch-bs to my new _tw v4 project

"browser-sync": "browser-sync start --proxy \"https://abc.local\" --files \"theme\" --no-notify --no-inject-changes --no-open ",
"watch-bs": "run-p watch:** browser-sync"

I find that when I'm working on a project, if I stop and do nothing,

The terminal will often show something like the following

[Browsersync] File event [change] : theme\style.css
Done in 947µs
Done in 1ms
Done in 825µs
Done in 875µs
[Browsersync] File event [change] : theme\style.css
Done in 3ms
Done in 3ms
Done in 4ms
Done in 4ms
Done in 2ms
Done in 2ms
Done in 3ms
[Browsersync] File event [change] : theme\style.css
[Browsersync] File event [change] : theme\style.css
[Browsersync] File event [change] : theme\style.css
[Browsersync] File event [change] : theme\style.css
[Browsersync] File event [change] : theme\style.css
[Browsersync] File event [change] : theme\style.css
Done in 5ms
Done in 5ms
Done in 2ms
Done in 1ms
[Browsersync] File event [change] : theme\style.css
Done in 5ms
Done in 5ms
Done in 2ms
Done in 3ms
Done in 3ms

But I was just looking at the screen, eating dinner, and not touching it, so why did the above appear? Nobody is modifying my project

I tested using VSCode, Cursor and Windsurf and the same thing happened. What did I do wrong? Or is this normal? Based on my previous experience with gulp + bs, this is not normal.

@gregsullivan
Copy link
Owner

Thanks for posting this!

Can you confirm whether the same thing happens with Browsersync disabled?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants