Grunt CDNify不会对文件进行CND化

spe*_*0ne 6 cdn build angularjs gruntjs yeoman

我使用Yeoman并尝试使用grunt来构建和优化我的dist.

我注意到在cdnify:dist我的index.html文件相同之后仍然引用本地bower之后.

<script src="bower_components/angular/angular.js"></script>
Run Code Online (Sandbox Code Playgroud)

这个构建过程似乎通过Ok:

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

使用AngularJS 1.2.6,CDNify 0.2.2.

我的bower.json似乎符合指南

我错过了什么吗?还有其他选择吗?

Eli*_*lka 4

这是CDNify报告的问题。google-cdn 似乎是硬编码支持的版本,而 Angular 1.2.x 目前还没有。

Dan Smith(又名X1011通过使用grunt-htmlrefs手动更新脚本标签来解决这个问题。您可以在他的verge-mobile-bingo的这次提交中看到他是如何做到的。