fix livereload
parent
df61f9e1fa
commit
38eda3aada
|
@ -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
|
* https://revealjs.com
|
||||||
* MIT licensed
|
* MIT licensed
|
||||||
*
|
*
|
||||||
|
|
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
15
gulpfile.js
15
gulpfile.js
|
@ -245,6 +245,9 @@ gulp.task('package', gulp.series('default', () =>
|
||||||
|
|
||||||
))
|
))
|
||||||
|
|
||||||
|
gulp.task('reload', () => gulp.src(['*.html', '*.md'])
|
||||||
|
.pipe(connect.reload()));
|
||||||
|
|
||||||
gulp.task('serve', () => {
|
gulp.task('serve', () => {
|
||||||
|
|
||||||
connect.server({
|
connect.server({
|
||||||
|
@ -254,20 +257,22 @@ gulp.task('serve', () => {
|
||||||
livereload: true
|
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([
|
gulp.watch([
|
||||||
'css/theme/source/*.{sass,scss}',
|
'css/theme/source/*.{sass,scss}',
|
||||||
'css/theme/template/*.{sass,scss}',
|
'css/theme/template/*.{sass,scss}',
|
||||||
], gulp.series('css-themes'))
|
], gulp.series('css-themes', 'reload'))
|
||||||
|
|
||||||
gulp.watch([
|
gulp.watch([
|
||||||
'css/*.scss',
|
'css/*.scss',
|
||||||
'css/print/*.{sass,scss,css}'
|
'css/print/*.{sass,scss,css}'
|
||||||
], gulp.series('css-core'))
|
], gulp.series('css-core', 'reload'))
|
||||||
|
|
||||||
|
gulp.watch(['test/*.html'], gulp.series('test'))
|
||||||
|
|
||||||
})
|
})
|
Loading…
Reference in New Issue