Create-react-app: `manifest.json` should have the name `manifest.webmanifest`

Created on 13 Dec 2017  路  5Comments  路  Source: facebook/create-react-app

Is this a bug report?

No

Expected Behavior

https://w3c.github.io/manifest/
According to documentation, manifest.json should have the name manifest.webmanifest.
So, metatag in header section should be
<link rel="manifest" href="%PUBLIC_URL%/manifest.webmanifest">

question > PWA

Most helpful comment

The only reason for this issue is because I was running this verification service:
https://sonarwhal.com/docs/user-guide/rules/manifest-file-extension/
But I'm sure that the extension is not important.
Please leave closed :)

All 5 comments

the manifest.webmanifest in linked w3c document is used in examples, however I didn't see any suggestions how to name the file.

Since it's in JSON format, IMHO manifest.json is best option

@jeffposnick I see that the spec says webmanifest, but do any browsers require this? I imagine json is probably friendliest from a UX perspective.

There's definitely no requirement as to the URL. Any URL that you pass in as the href for the <link rel="manifest"> is fine.

Using a filename/URL that ends in .json makes the most sense, given that the contents of the HTTP response needs to be valid JSON data.

Cheers @jeffposnick! I think we'll leave this as-is then @rodrigopandini.

The only reason for this issue is because I was running this verification service:
https://sonarwhal.com/docs/user-guide/rules/manifest-file-extension/
But I'm sure that the extension is not important.
Please leave closed :)

Was this page helpful?
0 / 5 - 0 ratings

Related issues

jnachtigall picture jnachtigall  路  3Comments

oltsa picture oltsa  路  3Comments

fson picture fson  路  3Comments

onelson picture onelson  路  3Comments

DaveLindberg picture DaveLindberg  路  3Comments