U
U
uRoot2018-11-03 15:52:13
linux
uRoot, 2018-11-03 15:52:13

Why does browsersync freeze?

OS: Debian
Installed Node via nvm and browsersync :

spoiler
curl https://raw.githubusercontent.com/creationix/nvm/m... | bash
nvm install v10.13.0
npm install -g browser-sync
I launch browsersync itself in the project like this:
browser-sync start --server --files "**/*"

But periodically browsersync freezes - it is impossible to refresh the tab and stops responding to changes in the project's JS file, and NodeJS itself starts to load the processor. Restarting browsersync helps. At the same time, I do not work with cycles, and the next time I start everything is OK.
Why is this happening and how to fix it?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
I
Ihor Bratukh, 2018-11-03
@BRAGA96

Try running like this:
In your case, browser-sync watches all files at the level where you started it.
Offtopic: If you have Windows, you can use this .bat file to start. Paste it into the index.html directory and run it.

E
Econavi, 2018-11-28
@Econavi

The same trouble.
Previously, it was not, now the bastard hangs.
Now we managed to find out that in Safari everything works fine, but in Chrome it hangs.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question