Commit 38eda3aa authored by Hakim El Hattab's avatar Hakim El Hattab
Browse files

fix livereload

parent df61f9e1
/*!
* reveal.js 4.0.0-rc.1 (Wed May 20 2020)
* reveal.js 4.0.0 (Wed May 20 2020)
* https://revealjs.com
* MIT licensed
*
......
This diff is collapsed.
This diff is collapsed.
......@@ -245,6 +245,9 @@ gulp.task('package', gulp.series('default', () =>
))
gulp.task('reload', () => gulp.src(['*.html', '*.md'])
.pipe(connect.reload()));
gulp.task('serve', () => {
connect.server({
......@@ -254,20 +257,22 @@ gulp.task('serve', () => {
livereload: true
})
gulp.watch(['js/**'], gulp.series('js', 'test'))
gulp.watch(['*.html', '*.md'], gulp.series('reload'))
gulp.watch(['plugin/**/plugin.js'], gulp.series('plugins'))
gulp.watch(['js/**'], gulp.series('js', 'reload', 'test'))
gulp.watch(['test/*.html'], gulp.series('test'))
gulp.watch(['plugin/**/plugin.js'], gulp.series('plugins', 'reload'))
gulp.watch([
'css/theme/source/*.{sass,scss}',
'css/theme/template/*.{sass,scss}',
], gulp.series('css-themes'))
], gulp.series('css-themes', 'reload'))
gulp.watch([
'css/*.scss',
'css/print/*.{sass,scss,css}'
], gulp.series('css-core'))
], gulp.series('css-core', 'reload'))
gulp.watch(['test/*.html'], gulp.series('test'))
})
\ No newline at end of file
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment