We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 378f74f commit b1863e0Copy full SHA for b1863e0
Gruntfile.js
@@ -76,10 +76,6 @@ module.exports = function(grunt) {
76
77
jpg: {
78
options: {
79
- optimizationLevel: 7,
80
- svgoPlugins: [{
81
- removeComments: true
82
- }],
83
progressive: true,
84
use: [
85
mozjpeg(),
@@ -89,13 +85,13 @@ module.exports = function(grunt) {
89
files: [{
90
86
expand: true,
91
87
cwd: 'img/',
92
- src: ['**/*.jpg'],
88
+ src: ['**/*.{jpg,jpeg}'],
93
dest: 'dist/img'
94
}]
95
},
96
rest: {
97
98
+ optimizationLevel: 7, //about optimizationlevel:https://www.npmjs.com/package/grunt-contrib-imagemin#optimizationlevel-png
99
svgoPlugins: [{
100
removeComments: true,
101
cleanupAttrs: true,
0 commit comments