سلام استاد.وقتتون بخیر.استاد بعد اجرای کد مربوط به فشردهسازی تصاویر،این خطا رو میده
const gulp = require('gulp');
const imagemin = require('gulp-imagemin');
// gulp.task --> difine task
// Gulp.src --> point to file to use
//gulp.dest --> point to folder to output
//gulp.watch --> watch file and folders for changes
//print msg
gulp.task('msg', async function () {
return console.log('this is my first task with gulp!!!');
});
//copy html files to dist folder
gulp.task('copyhtml', async function () {
gulp.src('src/*.html')
.pipe(gulp.dest('dist'));
});
//minify images
gulp.task()('minifyimage', async function () {
gulp.src('src/assets/img/*')
.pipe(imagemin())
.pipe(gulp.dest('dist/assets/img'))
});