diff options
author | Hakim El Hattab <hakim.elhattab@gmail.com> | 2020-05-20 12:08:57 +0200 |
---|---|---|
committer | Hakim El Hattab <hakim.elhattab@gmail.com> | 2020-05-20 12:08:57 +0200 |
commit | 38eda3aada59b673bfe51b174bb57f8de2aca45c (patch) | |
tree | 5a4d389e3367f894be94e54339aee6df4afcdeed /gulpfile.js | |
parent | df61f9e1fab4337e44e65fdd8a8488b91ac656de (diff) | |
download | fosdem-2021-minimalism-presentation-38eda3aada59b673bfe51b174bb57f8de2aca45c.tar fosdem-2021-minimalism-presentation-38eda3aada59b673bfe51b174bb57f8de2aca45c.tar.gz |
fix livereload
Diffstat (limited to 'gulpfile.js')
-rw-r--r-- | gulpfile.js | 15 |
1 files changed, 10 insertions, 5 deletions
diff --git a/gulpfile.js b/gulpfile.js index 2cdf441..3145b06 100644 --- a/gulpfile.js +++ b/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', () => { 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 |