1

I am not getting this. where we need to add short name in react project.

Make the short_name property in your Web App Manifest less than 12 characters.

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

4

1 回答 1

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/

于 2017-11-08T04:28:30.337 回答