Skip to content

Commit 3375e27

Browse files
authored
Merge pull request #2007 from angular-fullstack/chore/gulp-imagemin-3
chore(gulp): update imagemin [skip ci]
2 parents f9c75e7 + 346b3be commit 3375e27

File tree

2 files changed

+7
-6
lines changed

2 files changed

+7
-6
lines changed

Diff for: templates/app/_package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@
9191
"gulp-env": "^0.4.0",
9292
"gulp-eslint": "^2.0.0",
9393
"gulp-filter": "^4.0.0",
94-
"gulp-imagemin": "^2.2.1",
94+
"gulp-imagemin": "^3.0.1",
9595
"gulp-inject": "^4.0.0",
9696
"gulp-istanbul": "~0.10.3",
9797
"gulp-istanbul-enforcer": "^1.0.3",

Diff for: templates/app/gulpfile.babel.js

+6-5
Original file line numberDiff line numberDiff line change
@@ -512,11 +512,12 @@ gulp.task('clean:dist', () => del([`${paths.dist}/!(.git*|.openshift|Procfile)**
512512

513513
gulp.task('build:images', () => {
514514
return gulp.src(paths.client.images)
515-
.pipe(plugins.imagemin({
516-
optimizationLevel: 5,
517-
progressive: true,
518-
interlaced: true
519-
}))
515+
.pipe(plugins.imagemin([
516+
plugins.imagemin.optipng({optimizationLevel: 5}),
517+
plugins.imagemin.jpegtran({progressive: true}),
518+
plugins.imagemin.gifsicle({interlaced: true}),
519+
plugins.imagemin.svgo({plugins: [{removeViewBox: false}]})
520+
]))
520521
.pipe(plugins.rev())
521522
.pipe(gulp.dest(`${paths.dist}/${clientPath}/assets/images`))
522523
.pipe(plugins.rev.manifest(`${paths.dist}/${paths.client.revManifest}`, {

0 commit comments

Comments
 (0)