简体   繁体   English

Github 页面部署缺少 static 网站的文件和文件夹

[英]Github Pages deployment missing files and folders for static website

I have a static website repository我有一个 static 网站存储库

After deploying , I checked the Sources tab in Chrome Dev Tools and noticed that my OverWorldMap.js and some sub-folders in my images folder are missing from deployment even though they are clearly in my repository.部署后,我检查了 Chrome Dev Tools 中的Sources选项卡,发现我的OverWorldMap.js和我的图像文件夹中的一些子文件夹在部署中丢失了,尽管它们显然在我的存储库中。

Deployment: OverWorldMap.js is missing部署:缺少OverWorldMap.js

在此处输入图像描述

Repository: OverWorldMap.js exists存储库: OverWorldMap.js存在

在此处输入图像描述

Why is my deployment missing these files?为什么我的部署缺少这些文件?

This is a typing error in the path.这是路径中的键入错误。 Change your src attribute from "OverworldMap.js" to "OverWorldMap.js" and it should work.将您的 src 属性从“OverworldMap.js”更改为“OverWorldMap.js”,它应该可以工作。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM