title: Grunt SyntaxError: Unexpected token
body: <p>I'm trying to use Grunt but I get a SyntaxError.
  I can't find the solution.</p>
  
  <blockquote>
    <p>MacBook-Pro-van-Maarten:Project maarten$ grunt imagemin
        Loading "Gruntfile.js" tasks...ERROR</p>
    
    <blockquote>
      <blockquote>
        <p>SyntaxError: Unexpected token ;
            Warning: Task "imagemin" not found. Use --force to continue.
            Aborted due to warnings.</p>
      </blockquote>
    </blockquote>
  </blockquote>
  
  <p>Gruntfile.js</p>
  
  <pre><code>module.exports = (function(grunt) {
    grunt.initConfig({
      pkg: grunt.file.readJSON("package.json"),
      imagemin: {
        png: {
          options: {
            optimizationLevel: 7
          },
          files: [
            {
              expand: true,
              cwd: 'images_src/',
              src: ['**/*.png'],
              dest: 'images_imagemin',
              ext: '.png'
            }
          ]
        };
        jpg: {
          options: {
            progressive: true
          },
          files: [
            {
              expand: true,
              cwd: 'images_src/',
              src: ['**/*.jpg','**/*.jpeg'],
              dest: 'images_imagemin/',
              ext: '.jpg',
            }
          ]
        };
      };
    });
    grunt.loadNpmTasks('grunt-contrib-imagemin');
    grunt.registerTask('default', ['imagemin']);
  });
  </code></pre>
  
  <p>Thanks in advance.</p>