Skip to content

Instantly share code, notes, and snippets.

@mkoller
Created November 14, 2016 20:55
Show Gist options
  • Save mkoller/1c0d1fc3a58b52ea8ba1ed2f9570c548 to your computer and use it in GitHub Desktop.
Save mkoller/1c0d1fc3a58b52ea8ba1ed2f9570c548 to your computer and use it in GitHub Desktop.
Gulp imagemin
// Gulp images
gulp.task('images', function(){
return gulp.src('img/**/*.+(png|jpg|gif|svg)')
// Caching images that ran through imagemin
.pipe(cache(imagemin({
interlaced: true
})))
.pipe(gulp.dest('img'))
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment