Skip to content

Commit

Permalink
fix livereload
Browse files Browse the repository at this point in the history
  • Loading branch information
hakimel committed May 20, 2020
1 parent df61f9e commit 38eda3a
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 10 deletions.
2 changes: 1 addition & 1 deletion dist/reveal.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions dist/reveal.esm.js

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions dist/reveal.js

Large diffs are not rendered by default.

15 changes: 10 additions & 5 deletions gulpfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -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({
Expand All @@ -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'))

})

0 comments on commit 38eda3a

Please sign in to comment.