From 5b901dd5386f996f9a9f53107f368afe89adbcb3 Mon Sep 17 00:00:00 2001 From: bertieb Date: Mon, 22 Feb 2021 10:21:08 +0000 Subject: [PATCH] Fix watched build bug --- gulpfile.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/gulpfile.js b/gulpfile.js index af04d5f..fd03f73 100644 --- a/gulpfile.js +++ b/gulpfile.js @@ -115,9 +115,9 @@ gulp.task('serve', gulp.series("build-hs", watchedBundle, function() { gulp.watch("src/html/*.html").on('change', gulp.series("copy-html")); gulp.watch("dist/*.html").on('change', browserSync.reload); gulp.watch("dist/*.js").on('change', browserSync.reload); + watchedBrowserify.on("update", watchedBundle); + watchedBrowserify.on("log", fancy_log); })); gulp.task('default', gulp.series('serve')); -watchedBrowserify.on("update", watchedBundle); -watchedBrowserify.on("log", fancy_log);