Grunt CDNify not CNDify files

I am using Yeoman and trying to use grunt to create and optimize my dist.

I noticed that after cdnify:dist my index.html file is the same and still refers to the local conversation.

 <script src="bower_components/angular/angular.js"></script> 

this build process seems to go Ok:

 Running "cdnify:dist" (cdnify) task Going through dist/404.html, dist/index.html to update script refs 

Using AngularJS 1.2.6, CDNify 0.2.2.

My bower.json seems to follow the recommendations

Am I missing something? Is there any other alternative?

+6
source share
1 answer

This is a reported issue with CDNify. It seems google-cdn supports hard encodings, which Angular 1.2.x is not currently.

Dan Smith (AKA X1011) , worked around this, using grunt-htmlrefs to update script tags manually. You can see how he did it in this commit of his verge-mobile-bingo.

+4
source

All Articles