Не могу понять в чём дело, есть gulp сборка (собирал давно и забросил, сейчас вернулся и +- вспомнил что, где, куда и как, но не могу пофиксить ошибку) в которой ловлю:
The following tasks did not complete: default, , images
Did you forget to signal async completion?
Содержимое Image.js:
import webp from "gulp-webp";
import imagemin from "gulp-imagemin";
export const images = () => {
return app.gulp.src(app.path.src.images)
.pipe(app.plugins.plumber(
app.plugins.notify.onError({
title: "IMG Error",
message: "Error <%= error.message %"
}))
)
.pipe(app.plugins.newer(app.path.build.images))
.pipe(webp())
.pipe(app.gulp.dest(app.path.build.images))
.pipe(app.gulp.src(app.path.src.images))
.pipe(app.plugins.newer(app.path.build.images))
.pipe(imagemin({
progressive: true,
svgoPlugins: [{removeViewBox: false}],
interlaced: true,
optimizationLevel: 3
}))
.pipe(app.gulp.dest(app.path.build.images))
.pipe(app.gulp.src(app.path.src.svg))
.pipe(app.gulp.dest(app.path.build.images))
.pipe(app.plugins.browsersync.stream());
}
Содержимое gulpfile.js:
import gulp from "gulp";
import { path } from "./gulp/config/path.js";
import { plugins } from "./gulp/config/plugins.js";
global.app = {
path: path,
gulp: gulp,
plugins: plugins,
}
import { serve } from "./gulp/tasks/serve.js"
import { clean } from "./gulp/tasks/clean.js";
import { scss } from "./gulp/tasks/scss.js";
import { html } from "./gulp/tasks/html.js";
import { js } from "./gulp/tasks/js.js";
import { images } from "./gulp/tasks/images.js"
import { fonts } from "./gulp/tasks/fonts.js";
function watchFiles() {
gulp.watch([path.watch.html], html);
gulp.watch([path.watch.css], scss);
gulp.watch([path.watch.js], js);
gulp.watch([path.watch.images], images);
gulp.watch([path.watch.fonts], fonts);
}
//const build = gulp.series(clean, gulp.parallel(html,scss, js,images, fonts));
//const watch = gulp.parallel(build,watchFiles,serve);
const build = gulp.parallel(html,scss, js, images, fonts);
const watch = gulp.series(clean, build, gulp.parallel(watchFiles, serve));
//exports.watch=watch;
//exports.default=watch;
gulp.task('default', watch);