text: /*global module*/
  
  module.exports = function (grunt, tasks) {
    'use strict';
    
    // Load node module required for this task.
    grunt.loadNpmTasks('grunt-contrib-uglify');
    
    // The configuration for a specific task.
    tasks.uglify = {
      release: {
        options: {
          mangle: {
            sort: true,
            toplevel: true,
            eval: true
          },
          compress: {
            sequences: true,
            properties: true,
            dead_code: true,
            unsafe: true,
            conditionals: true,
            comparisons: true,
            evaluate: true,
            booleans: true,
            loops: true,
            unused: true,
            hoist_funs: true,
            hoist_vars: true,
            if_return: true,
            join_vars: true,
            cascade: true,
            negate_iife: true,
            pure_getters: true,
            keep_fargs: true,
            keep_fnames: false,
            drop_console: false
          }
        },
        files: {
          './www/src/game/game.min.js': [
            './www/src/game/game.js',
            '!./www/src/game/*.min.js'
          ]
        }
      }
    };
  
    return tasks;
  };
  