Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Grunt CDNify does not CNDify the files

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

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

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

this build process seem to pass 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 seem to be in line with the guidelines

Am I missing something? Is there other alternative?

like image 743
special0ne Avatar asked Feb 09 '14 15:02

special0ne


1 Answers

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

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

like image 198
Eliran Malka Avatar answered Nov 15 '22 04:11

Eliran Malka