我使用 Create React App 创建了我的项目,但在部署到生产环境时,build
文件夹中缺少文件 index.html。我检查了公用文件夹,index.html
的模板仍然存在。
我在 package.json 中使用了主页字段但没有成功
最佳答案
这不是 CRA 的问题,而是 react-snapshot 的问题(创建快照失败)。
https://stackoverflow.com/questions/57389325/
相关文章:
javascript - ag-grid:根据rowNode内容在fullRow编辑和单个单元格编辑
react-native - 异步/等待函数返回 _40 : 0, _65 : 0, _55 : n
pandas - future 警告 : Passing datetime64-dtype data
python - Google Sheets API 在本地工作,但从 AWS Lambda 运行时
javascript - 使用 Vue I18n 和大内容文本 html 的最佳方式
apache-spark - 将数据从 Spark Structured Streaming 加载到