Skip to content

Commit

Permalink
CPD-10862 Changed imagemin config to maintain svg viewBox. (#114)
Browse files Browse the repository at this point in the history
* CPD-10862 Changed `imagemin` config to maintain svg `viewBox`.

* CPD-10862 Linted
  • Loading branch information
bulutcy authored and ashleynolan committed Feb 7, 2018
1 parent dd7984a commit 5660830
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 2 deletions.
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,12 @@
The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/)
and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.html).

v7.10.0
------------------------------
*February 2, 2018*

### Changed
- Changed `imagemin` config to maintain svg `viewBox`.

v7.9.0
------------------------------
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@justeat/gulp-build-fozzie",
"version": "7.9.0",
"version": "7.10.0",
"description": "Gulp build tasks for use across Fozzie modules",
"main": "index.js",
"author": "Damian Mullins <[email protected]> (http://www.damianmullins.com)",
Expand Down
6 changes: 5 additions & 1 deletion tasks/images.js
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,11 @@ gulp.task('images:optimise', () => gulp.src(`${pathBuilder.imgSrcDir}/**`)
imagemin.gifsicle({ optimizationLevel: 3 }),
imagemin.jpegtran(),
imagemin.optipng({ optimizationLevel: 5 }),
imagemin.svgo()
imagemin.svgo({
plugins: [
{ removeViewBox: false }
]
})
], { verbose: config.isDev }))

.pipe(
Expand Down

0 comments on commit 5660830

Please sign in to comment.