title: Debug or Release mode with AngularJS
body: <p>I have an Angular app and I'm using Grunt, I made my Gruntfile for min, uglify and concat and after I reference my new .js file (created with Grunt) in my main.html everything is working fine when I publish my project. However, when I want to make some changes and want to run my app in debug mode, I have to change my .js references again in my main.html. Is there a way to check if in what mode my app is running, so I can load the specific .js files? 
  I've seen how to accomplish this in ASP.net, but how can I solve it in my case?</p>
  
  <p>Below is my gruntfile.js</p>
  
  <pre><code>'use strict';
  
  module.exports = function (grunt) {
  
  grunt.initConfig({
    clean: {
      options: {force: true},
      all: {
          src: ['../Analaysis.UI/app_built/**/*.*']
      }
    },
  
    ngmin: {
      all: {
          files: [
              {
                  expand: true,
                  cwd: '../Analaysis.UI',
                  src: ['**/*.js'
                      , '!**/Scripts/*'
                      , '!**/Scripts/**/*'
                      , '!**/obj/*'
                      , '!**/obj/**/*'
                      , '!**/src/**/**/*'],
                  dest: '../Analaysis.UI/app_built/',
                  ext: '.js'
              }
          ]
        }
    },
  
    uglify: {
      all: {
          files: [
              {
                  expand: true,
                  cwd: '../Analaysis.UI/app_built',
                  src: ['**/*.js'],
                  dest: '../Analaysis.UI/app_built/',
                  ext: '.min.js'
              }
          ]
        }
    },
  
    concat: {
          js: {
              options: {
                  separator: ';'
              },
  
                  src: ['../Analaysis.UI/app_built/Global/global.min.js'
                      ,'../Analaysis.UI/app_built/Global/config.min.js'
                      ,'../Analaysis.UI/app_built/Global/GlobalService.min.js'
                      ,'../Analaysis.UI/app_built/Login/LoginController.min.js'
                      ,'../Analaysis.UI/app_built/Login/LoginService.min.js'],
                  dest: '../Analaysis.UI/app_built/app_built_login.js'
  
       }
    }
   });
  
   grunt.registerTask("default", ['build']);
   grunt.registerTask('build', ['clean', 'ngmin', 'uglify', 'concat']);
  
   grunt.loadNpmTasks('grunt-contrib-clean'); 
   grunt.loadNpmTasks('grunt-ngmin');
   grunt.loadNpmTasks('grunt-contrib-uglify');
   grunt.loadNpmTasks('grunt-contrib-concat');
  };
  </code></pre>