 
   grunt.registerTask 'optimize', ->
     # TODO: turn on after our refactoring
-    #if NODE_ENV isnt 'dev'
-    #  grunt.task.run(optimizeScriptTasks)
+    if NODE_ENV isnt 'dev'
+      grunt.task.run(optimizeScriptTasks)
 
   grunt.registerTask 'updateComponent', ->
     manifest = grunt.file.readJSON('component.json')

          warning_level: 'verbose'
          summary_detail_level: 3


  ####
  ## Custom tasks


  # Script optimization tasks
  optimizeScriptTasks = [
    'uglify'
    'copy:jsmin'
    'clean:jsmin'
  ]
