File tree Expand file tree Collapse file tree 3 files changed +455
-208
lines changed Expand file tree Collapse file tree 3 files changed +455
-208
lines changed Original file line number Diff line number Diff line change @@ -12,6 +12,8 @@ const fse = require('fs-extra');
1212const git = require ( 'simple-git' ) ;
1313const pkg = require ( './package.json' ) ;
1414const update_i18n = require ( './updatei18nFiles.js' ) ;
15+ const mozjpeg = require ( 'imagemin-mozjpeg' ) ;
16+ const pngquant = require ( 'imagemin-pngquant' ) ;
1517
1618module . exports = function ( grunt ) {
1719 require ( 'time-grunt' ) ( grunt ) ;
@@ -151,7 +153,8 @@ module.exports = function(grunt) {
151153 imagemin : {
152154 images : {
153155 options : {
154- optimizationLevel : 2
156+ optimizationLevel : 2 ,
157+ use : [ mozjpeg ( { quality : 70 } ) , pngquant ( ) ] //plugins for jpeg & png image compression
155158 } ,
156159 files : [ {
157160 expand : true ,
@@ -502,4 +505,4 @@ module.exports = function(grunt) {
502505
503506 // runs with just grunt command
504507 grunt . registerTask ( 'default' , [ 'build' ] ) ;
505- } ;
508+ } ;
You can’t perform that action at this time.
0 commit comments