In gulp 3.9.1, the code worked
var processBuild = function (destUrl, newest) {
var buildCss = gulp.src([path.cssFiles])
.pipe(gulpif(newest, changed(path.tempFolder + path.cssFolder)))
.pipe(gulp.dest(destUrl + path.cssFolder));
var buildCssMap = gulp.src([path.cssFolder + '**/*.map'])
.pipe(gulpif(newest, changed(path.tempFolder + path.cssFolder)))
.pipe(gulp.dest(destUrl + path.cssFolder));
var buildHtml = gulp.src([path.htmlFiles])
.pipe(gulpif(newest, changed(path.tempFolder + path.htmlFolder)))
.pipe(gulp.dest(destUrl + path.htmlFolder));
var buildJs = gulp.src([path.jsFiles])
.pipe(gulpif(newest, changed(path.tempFolder + path.jsFolder)))
.pipe(gulp.dest(destUrl + path.jsFolder));
};
gulp.task('temp-build', function () {
processBuild(path.tempFolder, false)
});
gulp.task('dist-build', function () {
processBuild(path.distFolder, false)
});
gulp.task('upload-build', function () {
processBuild(path.uploadFolder, true)
});
after switching to gulp 4.0.0 it does not work with error:
[20:08:06] The following tasks did not complete: temp-build
[20:08:06] Did you forget to signal async completion?
Please help me figure out what the problem is.
In gulp 3.9.1, the code worked
after switching to gulp 4.0.0 it does not work with error:
Please help me figure out what the problem is.