When I execute:
yeoman init angular
yeoman install https://github.com/angular/bower-angular.git
yeoman build
Then
ls dist/components/bower-angular/
returns
angular.js component.json
While I expected angular.js to be minified and renamed to d10639ae.angular.js or something similar.
Any idea’s?
Minification in Yeoman is taken care of by the
usemin-handler:GruntFile.js
So open your
index.html:It should contain code like:
Everything between
build:jsandendbuildwill be minified. So if you want to minify other libraries, place them between these two comment lines.Note: there is an angular seed for Yeoman: