Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What is public/manifest.json file in create-react-app?

I know that chrome extensions use 'manifest.json`, but here, it is used as something else as well.

contents -

{
  "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"
}

When I change some value, page update, but nothing changes.

like image 320
Alexander Knyazev Avatar asked Sep 26 '22 22:09

Alexander Knyazev


People also ask

What is the manifest JSON file in react?

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.

Should I delete manifest JSON in react?

Yes, you should be completely fine deleting the manifest.

Why manifest JSON is needed?

Having a manifest is required by Chrome to show the Add to Home Screen prompt. When user installs or bookmark your web application to the homescreen or adds it to an application launcher, manifest. json provides to the browser so that it can treat your website the name, icons, etc.

What is asset manifest JSON file?

json file containing the paths of all generated assets. Since files are generated with content hashes in their filename, this file can be ingested from PHP to ensure we are enqueueing the right scripts or styles for our application. All reactions. Author.


2 Answers

It's a Web App Manifest that describes your application and it's used by e.g. mobile phones if a shortcut is added to the homescreen.

From MDN (linked above):

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.

like image 187
ivarni Avatar answered Oct 17 '22 21:10

ivarni


manifest.json is the json file that is mostly used to describe our app On mobile phones

like image 5
Debendra Dash Avatar answered Oct 17 '22 20:10

Debendra Dash