angularjs – Grunt CDNify没有CNDify文件
发布时间:2020-12-17 07:10:37 所属栏目:安全 来源:网络整理
导读:我使用Yeoman并尝试使用grunt来构建和优化我的dist. 我注意到在cdnify之后:dist我的index.html文件在相同之后仍然是相同的并且仍然引用本地bower. script src="bower_components/angular/angular.js"/script 这个构建过程似乎通过Ok: Running "cdnify:dist
我使用Yeoman并尝试使用grunt来构建和优化我的dist.
我注意到在cdnify之后:dist我的index.html文件在相同之后仍然是相同的并且仍然引用本地bower. <script src="bower_components/angular/angular.js"></script> 这个构建过程似乎通过Ok: Running "cdnify:dist" (cdnify) task Going through dist/404.html,dist/index.html to update script refs 使用AngularJS 1.2.6,CDNify 0.2.2. 我的bower.json似乎与guidelines一致 我错过了什么吗?还有其他选择吗? 解决方法
这是一张带有CDNify的
reported issue.似乎google-cdn是支持硬编码的版本,Angular 1.2.x目前还没有.
Dan Smith (AKA X1011),通过使用grunt-htmlrefs手动更新脚本标签解决了这个问题.你可以看到他是如何做到的in this commit他的边缘移动宾果游戏. (编辑:李大同) 【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容! |