gpt4 book ai didi

Github 页面 : Scripts from vendor directory are not getting loaded

转载 作者:太空狗 更新时间:2023-10-29 13:52:54 25 4
gpt4 key购买 nike

我正在尝试在 github 上创建一个博客以供学习。我的 repo 是 hk-skit.github.io .我在我的 vendor 目录中添加了 angularui-router 脚本。这就是我将它们包含在我的 index.html 中的方式。

<script src="vendor/angular.min.js"></script>
<script src="vendor/angular-ui-router.min.js"></script>
<script src="js/app.js"></script>

这是我的目录结构:

enter image description here

在我的本地,一切正常。但是当我将更改推送到 github 时。我不知道为什么它对 angularjsui-router404。这是链接:http://hk-skit.github.io/ .谁能帮我解决这个问题?谢谢。

最佳答案

这里是这个问题的详细原因:https://www.bennadel.com/blog/3181-including-node-modules-and-vendors-folders-in-your-github-pages-site.htm

简而言之,只需在 gh-pages 的根目录下创建一个空的 .nojekyll 文件就可以了。

关于Github 页面 : Scripts from vendor directory are not getting loaded,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/40541320/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com