There is a simple task of copying an image from a folder to another folder.
gulp.task('default', function () {
return gulp.src('./img/*.*')
.pipe(gulp.dest('./image'));
});
Everything worked fine for me before, but recently my images are copied to the output folder corrupted. When you try to open them, an error appears stating that the file is damaged and cannot be read.
gulp versions:
CLI version: 3.0.0
Local version: 5.0.0
I don’t understand what the problem could be and how to fix it, and it was even difficult to explain the problem. Maybe this is a problem with my PC, system or version of Gulp, etc., not clear. If anyone has encountered this problem please share the solution.
Thank you in advance!
Tried using other versions of Gulp, using different images, and tried to run the task on a different drive. All this was unsuccessful