I am currently working on an AngularJS and Grunt application, and I have a specific line of code that I only want to include in the "dist" version of my app. Is there a way to instruct Grunt to eliminate that line of code unless I execute 'grunt build'?
angular
.module('myModule', [
'ngResource',
'ngRoute',
'ngSanitize'
])
.config(['$routeProvider', '$locationProvider',function ($routeProvider, $locationProvider) {
$routeProvider
.when('/', {
templateUrl: 'views/main.html',
controller: 'MainCtrl'
})
$locationProvider.hashPrefix('!');
/** Inserted code for 'grunt build' **/
$locationProvider.html5Mode(true);
/** End of inserted code for build **/
}]);