From 7015fa994a9f43eb5c3ee53c4be63c9b4aa49f69 Mon Sep 17 00:00:00 2001 From: Manuel Thalmann Date: Mon, 10 May 2021 20:45:57 +0000 Subject: [PATCH] Fix watchers for windows running docker --- gulpfile.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/gulpfile.ts b/gulpfile.ts index f35190b..413c8a2 100644 --- a/gulpfile.ts +++ b/gulpfile.ts @@ -190,8 +190,8 @@ export async function Build() online: false }); - gulp.watch(settings.ThemeSource("**"), gulp.series(Theme, BrowserSync("*.css"))); - gulp.watch(settings.TemplateSource("**"), gulp.series(Templates, BrowserSync())); + gulp.watch(settings.ThemeSource("**"), { usePolling: true }, gulp.series(Theme, BrowserSync("*.css"))); + gulp.watch(settings.TemplateSource("**"), { usePolling: true }, gulp.series(Templates, BrowserSync())); } await Promise.all( @@ -238,7 +238,7 @@ export async function Library() if (settings.Watch) { - bundler = Watchify(bundler); + bundler = Watchify(bundler, { poll: true }); } bundler.plugin(