I have an Angular.js application, that I want to minify.
First of all, I've setup a certain gulp pipeline in order to handle aotations and minifications automatically.
In order to check how well implicit aotations work, I've added aotations using ngAotate and then ran application with strictDi options in order to catch all missed aotations. Then I've added comment hints for all missing aotations I've found. After that, everything works great, ngAotate automatically aotates my code and strict-di has no more waings.
However, when I actually minify my code using UglifyJS2, it fails to start the application saying that some service wasn't being found.
Here's the actual error message:
State change error Error: [$injector:unpr] Unknown provider: tProvider <- t
If I add mangle: false option to the UglifyJS2, it works fine.
— So the question is, how do I find the culprit and why strict-di isn't catching it?
