1
0
mirror of https://github.com/hakimel/reveal.js.git synced 2025-08-09 16:17:28 +02:00

Merge pull request #3446 from t-fritsch/speed-up-livereload

speed up livereload
This commit is contained in:
Hakim El Hattab
2023-08-09 15:12:36 +02:00
committed by GitHub

View File

@@ -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', () => {
@@ -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'))