Having the darnedest time trying to figure out why minification is not working.
I have injected via an array object my providers prior the function per numerous sugg
This is very difficult to debug because a lot of services are named the same (mostly e or a). This will not solve the error, but will provide you with the name of the unresolved service which enables you to track down, in the uglified output, the location in the code and finally enables you to solve the issue:
Go into lib/scope.js
of Uglify2 (node_modules/grunt-contrib-uglify/node_modules/uglify-js/lib/scope.js
) and replace the line
this.mangled_name = this.scope.next_mangled(options);
with
this.mangled_name = this.name + "__debugging_" + counter++
AndrewM96 suggestion of ng-min
is right.
The alignment and white space matters to Uglify as well as Angular.