Skip to content

Commit b1863e0

Browse files
author
Pascal Alferink
committed
cleanup jpg compression, alaso compress .jpeg-images and provide info about optimizationlevel
1 parent 378f74f commit b1863e0

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

Gruntfile.js

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -76,10 +76,6 @@ module.exports = function(grunt) {
7676

7777
jpg: {
7878
options: {
79-
optimizationLevel: 7,
80-
svgoPlugins: [{
81-
removeComments: true
82-
}],
8379
progressive: true,
8480
use: [
8581
mozjpeg(),
@@ -89,13 +85,13 @@ module.exports = function(grunt) {
8985
files: [{
9086
expand: true,
9187
cwd: 'img/',
92-
src: ['**/*.jpg'],
88+
src: ['**/*.{jpg,jpeg}'],
9389
dest: 'dist/img'
9490
}]
9591
},
9692
rest: {
9793
options: {
98-
optimizationLevel: 7,
94+
optimizationLevel: 7, //about optimizationlevel:https://www.npmjs.com/package/grunt-contrib-imagemin#optimizationlevel-png
9995
svgoPlugins: [{
10096
removeComments: true,
10197
cleanupAttrs: true,

0 commit comments

Comments
 (0)