Open liuderchi opened 6 years ago
It would be more convenient to support relative path in watch field.
watch
For example if I have
// .remote-sync.json { "watch": [ "./index.html", "main.css" ] }
with Project Folder to be ~/MY-PROJECT
~/MY-PROJECT
I would expect it to watch ~/MY-PROJECT/index.html and ~/MY-PROJECT/main.css
~/MY-PROJECT/index.html
~/MY-PROJECT/main.css
But it turns out watching ~/MY-PROJECT./index.html and ~/MY-PROJECTmain.css and throws Error
~/MY-PROJECT./index.html
~/MY-PROJECTmain.css
same problem by me. would need adding a directory separator between the project working directory and the watched file name.
It would be more convenient to support relative path in
watch
field.For example if I have
with Project Folder to be
~/MY-PROJECT
I would expect it to watch
~/MY-PROJECT/index.html
and~/MY-PROJECT/main.css
But it turns out watching
~/MY-PROJECT./index.html
and~/MY-PROJECTmain.css
and throws Error