Skip to content

Commit

Permalink
Fix gulp imagemin options
Browse files Browse the repository at this point in the history
Latest version of gulp-imagemin breaks with old method
roots/sage#1839
  • Loading branch information
asuh committed Feb 22, 2017
1 parent 5ea3680 commit 1319d0f
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions gulpfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -223,11 +223,11 @@ gulp.task('fonts', function() {
// `gulp images` - Run lossless compression on all the images.
gulp.task('images', function() {
return gulp.src(globs.images)
.pipe(imagemin({
progressive: true,
interlaced: true,
svgoPlugins: [{removeUnknownsAndDefaults: false}, {cleanupIDs: false}]
}))
.pipe(imagemin([
imagemin.jpegtran({progressive: true}),
imagemin.gifsicle({interlaced: true}),
imagemin.svgo({plugins: [{removeUnknownsAndDefaults: false}, {cleanupIDs: false}]})
]))
.pipe(gulp.dest(path.dist + 'images'))
.pipe(browserSync.stream());
});
Expand Down

0 comments on commit 1319d0f

Please sign in to comment.