I have an existing angular.js application, which I am in the process of upgrading to angular with NgUpgrade. I am also trying to move to using angular cli as the build system. ng serve
and ng build
works perfectly, but I am having trouble with ng build -prod
.
For the orginal application, I used gulp for building, and as a intermediate step i transformed the input files with ng-annotate. I am having a hard time getting this to work with angular cli.
Is there any way to integrate ng-annotate with ng build -prod
? Or any other way to process the angular.js files before minification?