btford/ngmin

Support minification of $httpProvider.responseInterceptors.push functions

Closed this issue · 9 comments

This currently doesn't get processed correctly:

$httpProvider.responseInterceptors.push(function ($q, $location) {
...
});

This is the only spot in my code right now that I have to manually configure.

Not sure if this is related to #35 or if the fix for that will also support this.

This is separate from #35, but also worthwhile.

+1

Uncaught Error: Unknown provider: aProvider <- a <- $http <- userService

Hit this error today. Was a tad bit confusing at first and took a while to track down the problem to $httpProvider.responseInterceptors.push.

+1

+1

$httpProvider.responseInterceptors.push(['$q', '$location', 
  function ($q, $location) {
  ...
  }
]);

Please try https://github.com/olov/ng-annotate. ngmin is now deprecated: #93

If your issue isn't resolved there please open an issue at https://github.com/olov/ng-annotate/issues

If you really want ngmin to fix this issue, feel free to fork it and use that.