[英]How do I link CSS and JS files to my HTML file for github pages?
[英]How to automatically link asset files that I add manually to my project (JS and CSS) to a template file
我已經使用 AngularJS 大約 6 個月了,最近開始使用 Yeoman 和 Grunt 來幫助我的工作流程。
有沒有辦法讓我手動添加到我的應用程序文件夾中的文件/腳本的 grunt 更新我的 index.html 文件?
我知道如果我使用命令:
$ yo angular:service New-Service
然后將創建一個樣板文件,我的 index.html 文件將被更新以引用新文件。
有沒有辦法為我沒有使用上面顯示的語法添加的文件使用此功能?
謝謝您的幫助。
您正在搜索鏈接器。 有幾個 grunt 插件可以完成這項工作: - grunt-asset-linker - grunt-sails-linker
這是你必須做的:
index.html
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.