From e9ba81149d95a02e699f4dc2222bb785efde97ff Mon Sep 17 00:00:00 2001 From: syuilo Date: Sat, 13 Mar 2021 00:40:35 +0900 Subject: fix watch --- gulpfile.ts | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) (limited to 'gulpfile.ts') diff --git a/gulpfile.ts b/gulpfile.ts index 0717d82086..0cdd016fd7 100644 --- a/gulpfile.ts +++ b/gulpfile.ts @@ -92,7 +92,9 @@ gulp.task('build', gulp.parallel( gulp.task('default', gulp.task('build')); -gulp.watch([ - './src/**/*', - '!./src/client/**/*' -], gulp.task('build')); +gulp.task('watch', () => { + gulp.watch([ + './src/**/*', + '!./src/client/**/*' + ], { ignoreInitial: false }, gulp.task('build')); +}); -- cgit v1.2.3-freya