only use a 2000 interval for non-push watch file approaches (e.g.: windows)

LGTY @paulbouwer @shama??
This commit is contained in:
Guillermo Rauch 2017-05-09 14:10:32 -07:00
parent fff88883f9
commit 79e12de2ff

View file

@ -40,7 +40,8 @@ let cfg = {};
function watch() {
// 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) {
throw err;
}