Create-react-app: Change PWA manifest settings

Created on 21 Feb 2018  路  4Comments  路  Source: facebook/create-react-app

Is this a bug report?

No

How do i change the values of the manifest.json file? At present my build command appears to copy the template manifest.json directly to the output.

question

Most helpful comment

What are you expecting to happen? I think that yeah public/manifest.json is copied directly to build/manifest.json.

All 4 comments

What are you expecting to happen? I think that yeah public/manifest.json is copied directly to build/manifest.json.

At the moment i just have a post build step that copies my own manifest.json file over the default one. I wondered if there was any way to generate it from the package.json or similar.

Hm, can you just modify public/manifest.json? Apart from index.html, I think that everything from public is just copied over with no magic, and you're free to modify anything already there as you see fit.

Modify the file in public/manifest.json; if you need to modify it, a Node script in your postbuild npm-script would be the best option.

Was this page helpful?
0 / 5 - 0 ratings