[TASK] gulp update

This commit is contained in:
Christian Seyfferth 2020-04-26 17:06:09 +02:00
parent f93401770d
commit 776ae35c61

View File

@ -57,7 +57,8 @@ function serve() {
})
watch(paths.scss.src, series(scss, css));
watch(paths.html.src).on('change', server.reload);
watch(paths.html.src, series(html));
watch(paths.html.dest + 'index.html').on('change', server.reload);
}
@ -84,7 +85,7 @@ function images() {
function imagesWebp() {
return src(paths.images.src)
.pipe(newer(paths.images.dest))
.pipe(newer(paths.images.dest + "*.webp"))
.pipe(imageResize({
width: 2400,
height: 1800,
@ -155,6 +156,6 @@ function favicon() {
.pipe(dest(paths.html.dest + "favicons/"));
}
exports.images = parallel(images, imagesWebp);
exports.default = series(parallel(html, pdf, series(favicon, manifest)), js, series(scss, css), parallel(images, imagesWebp));
exports.serve = series(serve);