create-react-app 中的 public/manifest.json 文件是什么?
What is public/manifest.json file in create-react-app?
我知道 chrome 扩展使用“manifest.json”,但在这里,它也用作其他用途。
内容 -
{
"short_name": "React App",
"name": "Create React App Sample",
"icons": [
{
"src": "favicon.ico",
"sizes": "192x192",
"type": "image/png"
}
],
"start_url": "./index.html",
"display": "standalone",
"theme_color": "#000000",
"background_color": "#ffffff"
}
当我更改一些值时,页面更新,但没有任何变化。
它是一个描述您的应用程序的 Web App Manifest手机,如果在主屏幕上添加了快捷方式。
来自 MDN(上面链接):
The web app manifest provides information about an application (such as name, author, icon, and description) in a JSON text file. The purpose of the manifest is to install web applications to the homescreen of a device, providing users with quicker access and a richer experience.
manifest.json 是 json 文件,主要用于描述我们的应用 在手机上
manifest.json 在 JSON 文本文件中提供有关 Web 应用程序的信息,这是下载 Web 应用程序并像本地应用程序一样呈现给用户所必需的(例如,安装在设备的主屏幕上,为用户提供更快的访问和更丰富的体验)。 PWA 清单包括其名称、作者、图标、版本、描述和所有必要资源的列表(除其他外)。
我知道 chrome 扩展使用“manifest.json”,但在这里,它也用作其他用途。
内容 -
{
"short_name": "React App",
"name": "Create React App Sample",
"icons": [
{
"src": "favicon.ico",
"sizes": "192x192",
"type": "image/png"
}
],
"start_url": "./index.html",
"display": "standalone",
"theme_color": "#000000",
"background_color": "#ffffff"
}
当我更改一些值时,页面更新,但没有任何变化。
它是一个描述您的应用程序的 Web App Manifest手机,如果在主屏幕上添加了快捷方式。
来自 MDN(上面链接):
The web app manifest provides information about an application (such as name, author, icon, and description) in a JSON text file. The purpose of the manifest is to install web applications to the homescreen of a device, providing users with quicker access and a richer experience.
manifest.json 是 json 文件,主要用于描述我们的应用 在手机上
manifest.json 在 JSON 文本文件中提供有关 Web 应用程序的信息,这是下载 Web 应用程序并像本地应用程序一样呈现给用户所必需的(例如,安装在设备的主屏幕上,为用户提供更快的访问和更丰富的体验)。 PWA 清单包括其名称、作者、图标、版本、描述和所有必要资源的列表(除其他外)。