The prod profile uses JavaScript minimization (performed by Grunt), which will reduce the size of your JavaScript file. Since this modifies your JavaScript code, it can cause problems, depending on how you write the dependency injection code. Have you reviewed the sample guidelines given? Or in control samples? You should write your dependency injection in the same style.
For example, to enter the scope of $ scope:
jhipsterApp.controller('MainController', ['$scope',
function ($scope) {
}]);
This will ensure that the minimization process does not violate the dependency injection of the $ scope variable.
, -: , . Gruntfile.js.