Improve gulp globbing (#598)
This commit is contained in:
parent
a6ce913546
commit
788ee59fd4
|
@ -31,7 +31,7 @@ const handleError = (done) => {
|
||||||
|
|
||||||
function hbs(done) {
|
function hbs(done) {
|
||||||
pump([
|
pump([
|
||||||
src(['*.hbs', 'partials/**/*.hbs', '!node_modules/**/*.hbs']),
|
src(['*.hbs', 'partials/**/*.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', 'partials/**/*.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);
|
||||||
|
|
Loading…
Reference in New Issue