fix livereload

This commit is contained in:
Hakim El Hattab 2020-05-20 12:08:57 +02:00
parent df61f9e1fa
commit 38eda3aada
4 changed files with 15 additions and 10 deletions

2
dist/reveal.css vendored
View File

@ -1,5 +1,5 @@
/*!
* 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
*

4
dist/reveal.esm.js vendored

File diff suppressed because one or more lines are too long

4
dist/reveal.js vendored

File diff suppressed because one or more lines are too long

View File

@ -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'))
})