R
R
rectangle2016-07-05 14:18:06
atom
rectangle, 2016-07-05 14:18:06

Why does Browser sync reload the page when I open scripts located on the local network in the editor?

I work with files located on a Windows machine via a local network.
Browser Sync reloads the page when I open scripts in the Atom editor on an OS X machine.
Because Browser Sync watches for file changes and reloads when those files change, Atom seems to change something when opening a script. in file. But what?
Since, for example, if I open these scripts in a Mac notepad, Browser Sync does not reload the page, because it does not see the changes.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
D
Damir Rysaev, 2016-07-05
@freepad

Try to track changes in the file through git, when you find out what Atom changes in the file, you will think about what to do next:

git init
git add filename.js
atom filename.js
git status

As an option, I think maybe atom changes the line break in the file, to what is the default on unix systems
\r\n to \n

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question