Skip to content
Snippets Groups Projects
Unverified Commit 82d63e02 authored by t-fritsch's avatar t-fritsch Committed by GitHub
Browse files

fixes livereload when using root CLI param

parent c8a7f262
No related branches found
No related tags found
No related merge requests found
......@@ -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'))
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment