[TASK] gulp update
This commit is contained in:
parent
f93401770d
commit
776ae35c61
@ -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);
|
||||
Loading…
x
Reference in New Issue
Block a user