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

Merge pull request #3441 from t-fritsch/fix-livereload-with-root-param

fixes livereload when using root CLI param
This commit is contained in:
Hakim El Hattab
2023-08-06 13:27:12 +02:00
committed by GitHub

View File

@@ -298,7 +298,12 @@ gulp.task('serve', () => {
livereload: true
})
gulp.watch(['**/*.html', '**/*.md'], gulp.series('reload'))
const slidesRoot = root.endsWith('/') ? root : root + '/'
gulp.watch([
slidesRoot + '**/*.html',
slidesRoot + '**/*.md',
`!${slidesRoot}**/node_modules/**`, // ignore node_modules
], gulp.series('reload'))
gulp.watch(['js/**'], gulp.series('js', 'reload', 'eslint'))