mirror of
https://github.com/quine-global/hyper.git
synced 2026-01-16 05:38:41 -09:00
only use a 2000 interval for non-push watch file approaches (e.g.: windows)
LGTY @paulbouwer @shama??
This commit is contained in:
parent
fff88883f9
commit
79e12de2ff
1 changed files with 2 additions and 1 deletions
|
|
@ -40,7 +40,8 @@ let cfg = {};
|
||||||
|
|
||||||
function watch() {
|
function watch() {
|
||||||
// watch for changes on config every 2s
|
// watch for changes on config every 2s
|
||||||
gaze(path, {interval: 2000}, function (err) {
|
// windows interval: https://github.com/zeit/hyper/pull/1772
|
||||||
|
gaze(path, process.platform === 'win32' ? {interval: 2000} : {}, function (err) {
|
||||||
if (err) {
|
if (err) {
|
||||||
throw err;
|
throw err;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue