【发布时间】:2014-03-16 22:50:55
【问题描述】:
我将 AngularJS 用于我的 Web 应用程序,并使用 yeoman 来设置我的环境。我想将此markdown-directive 添加到我的依赖项中。我安装了所有东西,但仍然:在 bower.json 文件中缺少条目。
所以我将路径添加到我的文件中
bower.json(只是入口)
karma.conf.js(路径)
我还在我的 index.html 文件中添加了路径。当我运行 grunt serve 时,index.html 文件中的路径被删除,我收到以下错误消息:
showdown was not injected in your file.
Please go take a look in "app/bower_components/showdown" for the file you need, then manually include it in your file.
我该怎么做才能使链接保留在我的 index.html 文件中?
我知道,我可以在服务器启动后添加它,但是每次我重新启动 grunt 时,script-tag 都会被删除。
【问题讨论】:
标签: javascript json angularjs