 module.exports = (grunt) ->
     grunt.initConfig
-        dist: 'public/dist'
-        src: 'public/src'
         pkg: grunt.file.readJSON 'package.json'
-        clean: ['<%= dist %>/css', '<%= dist %>/js']
+        dirs:
+            dist: 'public/dist'
+            src: 'public/src'
+        clean: [
+            '<%= dirs.dist %>/css'
+            '<%= dirs.dist %>/js'
+            '<%= dirs.dist %>/img'
+        ]
         coffeelint:
             app: ['Enactus.coffee']
             grunt: ['Gruntfile.coffee']

                    except: ['jQuery']
            main:
                files: [
                    '<%= dist %>/js/enactus.js': [
                        '<%= src %>/js/plugins.js', '<%= src %>/js/enactus.js'
                    ]
                    '<%= dist %>/js/landing.js':['<%= src %>/js/landing.js']
                    '<%= dist %>/js/contact.js': ['<%= src %>/js/contact.js']
                ]

    grunt.loadNpmTasks 'grunt-contrib-clean'

            images:
                files: [
                    expand: true
                    cwd: '<%= dirs.src %>/img/'
                    src: ['**']
                    dest: '<%= dirs.dist %>/img/'
                ]
        imagemin:
            options:
                cache: false
            images:
                files: [
                    expand: true
                    cwd: '<%= dirs.src %>/img/'
                    src: ['**/*.{png,jpg,gif}']
                    dest: '<%= dirs.dist %>/img/'
                ]
        uglify:
            options:
