lundi 22 décembre 2014

Bower/grunt loading 1 script at the top


So, I am still pretty new to this, but I am using a yeoman generator for my projects, specifcally this one http://ift.tt/18E7G2s. What I am trying to accomplish is having angular load in in the TOP of the index.html, instead of in the group with the rest. I basically am trying to get ng-cloak to work for my app loading, and cannot seem to accomplish this correctly without having the angular script loaded in up in the head, otherwise it shows the unrendered html.


I'm wondering if there is a way to do this with the grunt (possibly bower?) set up? I am using their grunt file - seen here http://ift.tt/1zrsXbJ. Also - when I grunt build, can I keep it in the top of the document (instead of piled in with the minified js at the bottom again).


If someone could point me in the right direction I would REALLY appreciate it, I've been digging through the grunt and bower stuff for a few hours now :(.


Thanks for reading!





Aucun commentaire:

Enregistrer un commentaire