diff --git a/gulpfile.js b/gulpfile.js index 6818e8b2..c350a544 100644 --- a/gulpfile.js +++ b/gulpfile.js @@ -298,7 +298,11 @@ gulp.task('serve', () => { livereload: true }) - gulp.watch(['**/*.html', '**/*.md'], gulp.series('reload')) + const slidesRoot = root.endsWith('/') ? root : root + '/' + gulp.watch([ + slidesRoot + '**/*.html', + slidesRoot + '**/*.md', + ], gulp.series('reload')) gulp.watch(['js/**'], gulp.series('js', 'reload', 'eslint'))