Skip to content

Commit 3a142ef

Browse files
committed
Fix syntax for gulp-imagemin
1 parent 3a39933 commit 3a142ef

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

generators/gulp/templates/gulpfile.js

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -163,10 +163,12 @@ gulp.task('inject:footer', () =>
163163
// 'gulp images' -- optimizes and caches your images
164164
gulp.task('images', () =>
165165
gulp.src('src/assets/images/**/*')
166-
.pipe($.cache($.imagemin({
167-
imagemin.gifsicle({interlaced: true}),
168-
imagemin.mozjpeg({progressive: true})
169-
})))
166+
.pipe($.cache($.imagemin([
167+
$.imagemin.gifsicle({interlaced: true}),
168+
$.imagemin.jpegtran({progressive: true}),
169+
$.imagemin.optipng(),
170+
$.imagemin.svgo({plugins: [{cleanupIDs: false}]})
171+
])))
170172
.pipe(gulp.dest('.tmp/assets/images'))
171173
.pipe($.size({title: 'images'}))
172174
);

0 commit comments

Comments
 (0)