diff options
author | Anike Arni <aarni@thoughtworks.com> | 2017-02-23 16:48:20 -0300 |
---|---|---|
committer | Anike Arni <aarni@thoughtworks.com> | 2017-02-23 16:48:20 -0300 |
commit | 5fbfde0e465539c5e8a03764a695cc45a85b1ca2 (patch) | |
tree | 01c1431956f26dee28287281feeb926cab9c4835 | |
parent | d13543e3e680d47c7c675a9684d9854f2397aadb (diff) |
[#907] Minifies png images
with @thaissiqueira
-rw-r--r-- | web-ui/config/imagemin.js | 4 | ||||
-rw-r--r-- | web-ui/package.json | 1 |
2 files changed, 4 insertions, 1 deletions
diff --git a/web-ui/config/imagemin.js b/web-ui/config/imagemin.js index 40c84f1c..a01f1dac 100644 --- a/web-ui/config/imagemin.js +++ b/web-ui/config/imagemin.js @@ -17,6 +17,7 @@ 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: [ @@ -24,7 +25,8 @@ imagemin(['app/images/*.{gif,jpg,png,svg}'], 'dist/public/images', { plugins: [ {removeViewBox: false} ] - }) + }), + imageminPngquant() ] }).then(files => { console.log('Images list:') diff --git a/web-ui/package.json b/web-ui/package.json index 0ce809d2..63272743 100644 --- a/web-ui/package.json +++ b/web-ui/package.json @@ -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", |