Skip to content

Commit 25698cf

Browse files
Merge pull request #1271 from nhsuk/fix-reload-loop
Fix watch path to avoid `node_modules`
2 parents 0121c06 + 4a92135 commit 25698cf

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

gulpfile.mjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ gulp.task(
6363

6464
gulp.task('docs:watch', () =>
6565
Promise.all([
66-
gulp.watch(['**/*.njk'], buildHTML),
66+
gulp.watch(['app/**/*.njk', 'packages/**/*.njk'], buildHTML),
6767
gulp.watch(['dist/**/*.html']).on('change', browserSync.reload),
6868
gulp.watch(['dist/*.min.{css,css.map}'], copyCSS),
6969
gulp.watch(['dist/*.min.{js,js.map}'], copyJS),

0 commit comments

Comments
 (0)