Fix watchers for windows running docker

This commit is contained in:
Manuel Thalmann 2021-05-10 20:45:57 +00:00
parent 9f9c0bc497
commit 7015fa994a

View file

@ -190,8 +190,8 @@ export async function Build()
online: false online: false
}); });
gulp.watch(settings.ThemeSource("**"), gulp.series(Theme, BrowserSync("*.css"))); gulp.watch(settings.ThemeSource("**"), { usePolling: true }, gulp.series(Theme, BrowserSync("*.css")));
gulp.watch(settings.TemplateSource("**"), gulp.series(Templates, BrowserSync())); gulp.watch(settings.TemplateSource("**"), { usePolling: true }, gulp.series(Templates, BrowserSync()));
} }
await Promise.all( await Promise.all(
@ -238,7 +238,7 @@ export async function Library()
if (settings.Watch) if (settings.Watch)
{ {
bundler = Watchify(bundler); bundler = Watchify(bundler, { poll: true });
} }
bundler.plugin( bundler.plugin(