Delay gulp-watch read so watch task isn't broken on slower disks.

vscode writes files non-atomically. This is useful on an azure devbox over ssh.
This commit is contained in:
Rob Lourens
2019-09-09 11:46:16 -07:00
parent 0a378fda42
commit bb02180904
3 changed files with 3 additions and 3 deletions

View File

@@ -99,7 +99,7 @@ export function watchTask(out: string, build: boolean): () => NodeJS.ReadWriteSt
const compile = createCompile('src', build);
const src = gulp.src('src/**', { base: 'src' });
const watchSrc = watch('src/**', { base: 'src' });
const watchSrc = watch('src/**', { base: 'src', readDelay: 200 });
let generator = new MonacoGenerator(true);
generator.execute();