Skip to content

Commit 47b9012

Browse files
committed
fixed imagemin
1 parent 0d1a8dd commit 47b9012

File tree

3 files changed

+454
-207
lines changed

3 files changed

+454
-207
lines changed

Gruntfile.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,8 @@ const fse = require('fs-extra');
1212
const git = require('simple-git');
1313
const pkg = require('./package.json');
1414
const update_i18n = require('./updatei18nFiles.js');
15+
const mozjpeg = require('imagemin-mozjpeg');
16+
const pngquant = require('imagemin-pngquant');
1517

1618
module.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(),pngquant()] //plugins for jpeg & png image compression
155158
},
156159
files: [{
157160
expand: true,

0 commit comments

Comments
 (0)