T
T
Tatiana2015-09-17 12:13:04
Grunt.js
Tatiana, 2015-09-17 12:13:04

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']);

};

when running in the console, we get:
Running "imagemin:images" (imagemin) task
but no optimizations occur ((what could be wrong??

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question