【问题标题】:What is public/manifest.json file in create-react-app?create-react-app 中的 public/manifest.json 文件是什么?
【发布时间】:2017-12-24 12:21:12
【问题描述】:

我知道 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"
}

当我更改某些值时,页面会更新,但没有任何变化。

【问题讨论】:

    标签: reactjs manifest create-react-app


    【解决方案1】:

    manifest.json 是 json 文件,主要用于描述我们手机上的应用

    【讨论】:

      【解决方案2】:

      这是一个 Web App Manifest 描述您的应用程序,它被例如使用。如果在主屏幕上添加了快捷方式,则为手机。

      来自 MDN(上面链接):

      Web 应用程序清单在 JSON 文本文件中提供有关应用程序的信息(例如名称、作者、图标和描述)。清单的目的是将网络应用程序安装到设备的主屏幕上,为用户提供更快的访问和更丰富的体验。

      【讨论】:

        猜你喜欢
        • 1970-01-01
        • 2021-06-16
        • 2020-12-26
        • 2019-12-27
        • 1970-01-01
        • 1970-01-01
        • 2017-10-05
        • 1970-01-01
        • 1970-01-01
        相关资源
        最近更新 更多