Environment-dependent configuration files with AngularJS and Grunt
You don’t necessarily want to enable analytics tracking when testing your application on your local machine, nor do you want to log all of the debug messages on your production server. Here is a simple solution to handle multiple application configurations depending on the environment it’s running in.