So I’m currently using Yeoman which I very much love. I have a task to do which is grab my angular app and make it serverless. Basically this means grabbing all of the templates and inserting them into the index.html file with
<script type="text/ng-template" id="dir to template"> ..template html goes here </script>
Now yeoman has its own gruntfile and I’m totally a newb to Grunt so I’m wondering if
a) This should be a task handled by grunt ?
b) Should I tweak the existing grunt file or create a new one?
c) Any good ideas of where I can find documentation on how to do this?
Thank you!
We’re working on making Yeoman more easily customizable, but in the meantime you can override the
buildtask by adding this in your Gruntfile:This will let you add whatever task you want to the build process.
If you want to customize further you could override
buildinstead and just piece together what you want from the tasks yeoman provides:usemin-handler rjs concat css min img rev usemin manifest html.Example: