Light House:Manifest的short_name将在主屏幕上显示时被截断

时间:2017-10-31 12:07:34

标签: reactjs lighthouse

我没有得到这个。我们需要在反应项目中添加短名称。

使Web App Manifest中的short_name属性少于12个字符。

{   ...   " short_name":" Air Horner",   ... }

1 个答案:

答案 0 :(得分:0)

您需要将其添加到public \ 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"
}

https://developers.google.com/web/fundamentals/web-app-manifest/