Skip to content

Commit

Permalink
Merge pull request #3446 from t-fritsch/speed-up-livereload
Browse files Browse the repository at this point in the history
speed up livereload
  • Loading branch information
hakimel committed Aug 9, 2023
2 parents 92ee97f + 74a5dac commit b8d97d2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions gulpfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -286,7 +286,7 @@ gulp.task('package', gulp.series(() =>

))

gulp.task('reload', () => gulp.src(['**/*.html', '**/*.md'])
gulp.task('reload', () => gulp.src(['index.html'])
.pipe(connect.reload()));

gulp.task('serve', () => {
Expand All @@ -300,7 +300,7 @@ gulp.task('serve', () => {

const slidesRoot = root.endsWith('/') ? root : root + '/'
gulp.watch([
slidesRoot + '**/*.html',
slidesRoot + '**/*.html',
slidesRoot + '**/*.md',
`!${slidesRoot}**/node_modules/**`, // ignore node_modules
], gulp.series('reload'))
Expand Down

0 comments on commit b8d97d2

Please sign in to comment.