Answer the question
In order to leave comments, you need to log in
Grunt imagemin not optimizing, what could be the problem?
I apologize right away for the imperfect look of the Grunfile.js code:
we have such a code and different photos distributed in the images folder
module.exports = function(grunt) {
grunt.initConfig({
imagemin: {
images: {
options: {
optimizationLevel: 3
},
files: [{
expand: true,
src: ["images/**/*.{png,jpg,gif,svg}"]
}]
}
}
});
grunt.loadNpmTasks('grunt-contrib-imagemin');
grunt.registerTask('default', ['imagemin']);
};
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question