Update hbs watcher

This commit is contained in:
John O'Nolan 2019-12-06 18:09:20 +07:00
parent e842f9f11e
commit 7bc2d5fa8c
1 changed files with 2 additions and 2 deletions

View File

@ -31,7 +31,7 @@ const handleError = (done) => {
function hbs(done) { function hbs(done) {
pump([ pump([
src(['*.hbs', 'partials/**/*.hbs', '!node_modules/**/*.hbs']), src(['*.hbs', '**/**/*.hbs', '!node_modules/**/*.hbs']),
livereload() livereload()
], handleError(done)); ], handleError(done));
} }
@ -79,7 +79,7 @@ function zipper(done) {
} }
const cssWatcher = () => watch('assets/css/**', css); const cssWatcher = () => watch('assets/css/**', css);
const hbsWatcher = () => watch(['*.hbs', 'partials/**/*.hbs', '!node_modules/**/*.hbs'], hbs); const hbsWatcher = () => watch(['*.hbs', '**/**/*.hbs', '!node_modules/**/*.hbs'], hbs);
const watcher = parallel(cssWatcher, hbsWatcher); const watcher = parallel(cssWatcher, hbsWatcher);
const build = series(css, js); const build = series(css, js);
const dev = series(build, serve, watcher); const dev = series(build, serve, watcher);