GitHub页面无法使用create react app(CRA)更新index.html元标记

问题描述 投票:1回答:1

GitHub页面用我自己的index.html文件包装了我的create-react-app的index.html。

原始index.html文件具有元标记,而GitHub没有。

我无法更改Github的index.html文件的元数据,并且确实使用了原始CRA的index.html中的元数据。

如何解决此问题?

enter image description here

该项目具有基本的React项目文件结构:

enter image description here

GitHub页面用我自己的index.html文件包装了我的create-react-app的index.html。原始的index.html文件具有meta标记,而GitHub的没有。我无法更改Github索引的元数据。...

html reactjs metadata create-react-app github-pages
1个回答
0
投票

从文件结构看,您似乎正在创建反应单页应用程序,它不是github扭曲您的索引页

© www.soinside.com 2019 - 2024. All rights reserved.