Skip to content
This repository has been archived by the owner on Jan 2, 2020. It is now read-only.

Commit

Permalink
[#907] Minifies png images
Browse files Browse the repository at this point in the history
  • Loading branch information
Anike Arni committed Feb 23, 2017
1 parent d13543e commit 5fbfde0
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
4 changes: 3 additions & 1 deletion web-ui/config/imagemin.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,14 +17,16 @@

const imagemin = require('imagemin');
const imageminSvgo = require('imagemin-svgo');
const imageminPngquant = require('imagemin-pngquant');

imagemin(['app/images/*.{gif,jpg,png,svg}'], 'dist/public/images', {
use: [
imageminSvgo({
plugins: [
{removeViewBox: false}
]
})
}),
imageminPngquant()
]
}).then(files => {
console.log('Images list:')
Expand Down
1 change: 1 addition & 0 deletions web-ui/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@
"i18next-xhr-backend": "^1.2.1",
"iframe-resizer": "^3.5.7",
"imagemin": "5.2.1",
"imagemin-pngquant": "^5.0.0",
"imagemin-svgo": "^5.2.0",
"jasmine-flight": "^4.0.0",
"jasmine-jquery": "^2.1.1",
Expand Down

0 comments on commit 5fbfde0

Please sign in to comment.