           ext: '.min.js'
         } ]
 
+      staging:
+        files: [ {
+          expand: true
+          cwd: '_site/'
+          src: ['**/*.js']
+          dest: '_site/'
+          ext: '.min.js'
+        } ]
+
+      development:
+        options: [ {
+          compress: false
+          beautify: true
+          mangle: false
+        } ]
+        files: [ {
+          expand: true
+          cwd: '_site/'
+          src: ['**/*.js']
+          dest: '_site/'
+          ext: '.min.js'
+        } ]
+
     cssmin:
-      target:
+      production:
         files: [ {
           expand: true
           cwd: '_site/'

  grunt.loadNpmTasks 'grunt-contrib-cssmin'
  grunt.loadNpmTasks 'grunt-exec'

  env =
    development:
      baseurl: '"\'\'"'

          '*.html'
          '*.md'
        ]

        tasks: [ 'exec:purge', 'build' ]

    connect:
      server:
        options:
          port: 4040
          base: '_site'
          livereload: false


  grunt.registerTask 'build', [
    'set_environment'
    'exec:baseurl'
