J S*_*olt 5 github-pages reactjs
我有一个基本的 React 应用程序。没有后端。我想在 github 页面上设置它。我看了这篇文章两次。https://medium.freecodecamp.org/surge-vs-github-pages-deploying-a-create-react-app-project-c0ecbf317089
这两次,Github Pages 都会显示 README.md 文件,而不是我的公共文件夹中的 index.html 文件。这是应用程序的文件目录的图像。有什么想法吗?
如果重要的话,这是我在 package.json 中的内容:
{
"name": "react-blog",
"version": "0.1.0",
"private": true,
"homepage": "https://jackseabolt.github.io/react-blog/",
"dependencies": {
"react": "^16.0.0",
"react-dom": "^16.0.0",
"react-scripts": "1.0.14"
},
"scripts": {
"start": "react-scripts start",
"build": "react-scripts build",
"test": "react-scripts test --env=jsdom",
"eject": "react-scripts eject",
"predeploy": "npm run build",
"deploy" : "npm run build&&gh-pages -d build"
},
"devDependencies": {
"gh-pages": "^1.0.0"
}
}
Run Code Online (Sandbox Code Playgroud)
| 归档时间: |
|
| 查看次数: |
2250 次 |
| 最近记录: |