【发布时间】:2019-10-03 07:45:57
【问题描述】:
在 React 中,我需要将起始页面 index.html 更改为其他 html 页面(例如:person.html 作为说明页面)。我在公用文件夹中创建了 person.html 页面并在 manifest.json 中进行了更改并尝试了。但它仍然以 index.html 为优先。
manifest.json:
{
"short_name": "React App",
"name": "Create React App Sample",
"icons": [
{
"src": "favicon.ico",
"sizes": "64x64 32x32 24x24 16x16",
"type": "image/x-icon"
}
],
"start_url": "./person.html", //here i have changed and tried
"display": "standalone",
"theme_color": "#000000",
"background_color": "#ffffff"
}
我期待渲染时的结果,它不应该运行 index.html 并且应该占用其他 html 页面。
【问题讨论】:
标签: reactjs react-native