File tree 3 files changed +455
-208
lines changed 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');
12
12
const git = require ( 'simple-git' ) ;
13
13
const pkg = require ( './package.json' ) ;
14
14
const update_i18n = require ( './updatei18nFiles.js' ) ;
15
+ const mozjpeg = require ( 'imagemin-mozjpeg' ) ;
16
+ const pngquant = require ( 'imagemin-pngquant' ) ;
15
17
16
18
module . exports = function ( grunt ) {
17
19
require ( 'time-grunt' ) ( grunt ) ;
@@ -151,7 +153,8 @@ module.exports = function(grunt) {
151
153
imagemin : {
152
154
images : {
153
155
options : {
154
- optimizationLevel : 2
156
+ optimizationLevel : 2 ,
157
+ use : [ mozjpeg ( { quality : 70 } ) , pngquant ( ) ] //plugins for jpeg & png image compression
155
158
} ,
156
159
files : [ {
157
160
expand : true ,
@@ -502,4 +505,4 @@ module.exports = function(grunt) {
502
505
503
506
// runs with just grunt command
504
507
grunt . registerTask ( 'default' , [ 'build' ] ) ;
505
- } ;
508
+ } ;
You can’t perform that action at this time.
0 commit comments