我想将 CDN 托管的 Firebase Javascript 文件添加到基于 ng-boilerplate 的应用程序中。
我尝试将其添加到 build.config.js 中的 vendor_files
中,但它未包含在输出 index.html 中 - 也许是因为它无法在本地找到该文件?
如果我直接将应用程序添加到 index.html 模板,该应用程序就可以工作,但这不干净并且会破坏测试。
有没有办法将外部文件添加到 ng-boilerplate 或修改 Gruntfile 来添加它们?
最佳答案
根据文档,
the
vendor_files.js
property holds files to be automatically concatenated and minified with our project source files.
所以这是行不通的。根据 Kato 的链接,v0.4 仍在考虑中。
关于javascript - 如何使用 ng-boilerplate 包含 CDN 托管的库?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/19113652/