I have react + webpack app
My manifest.webmanifest
{
"name": "x",
"short_name": "x",
"start_url": "./index.html",
"display": "fullscreen",
"background_color": "white",
"theme_color": "white",
"icons": [
{
"src": "favicon-16x16.png",
"type": "image/png",
"sizes": "16x16"
},
{
"src": "favicon-32x32.png",
"type": "image/png",
"sizes": "32x32"
}
]
}
Index.html
<link crossorigin="use-credentials" rel="manifest" href="manifest.webmanifest" />
I tried different combination but always get error in Chorome (at localhost):
Line: 1, column: 1, Syntax error;
In which folder should manifest.webmanifest be? (src, public, public/img ????) index.html is in src folder
What to write in href in index.html? (href="manifest.webmanifest", href="./manifest.webmanifest" ???)
What to write in 'start_url' in manifest.webmanifest?
Where to store favicon-16x16.png and favicon-32x32.png (src, public ???)
What to write in icons src in manifest.webmanifest
"icons": [
{
"src": ?????????,
"type": "image/png",
"sizes": "16x16"
},
- Do I need to write something additional in the settings of Webpack?