Skip to content Skip to sidebar Skip to footer

Gulp-imagemin - How To Disregard Directory Structures?

I'm using gulp-imagemin in it's basic form gulp.task('image', function() { return gulp.src('./images/*') .pipe(imagemin({ progressive: true, svgoPlugins: [{r

Solution 1:

I was able to achieve this with gulp-flatten by adding .pipe(flatten()) after the .imagemin()


Post a Comment for "Gulp-imagemin - How To Disregard Directory Structures?"