π Configuration
π manifest.json Preview
π How to Use
PWA Manifest (Web App Manifest) is a required configuration file for PWAs. Include it in your HTML with <link rel="manifest" href="manifest.json">.
Required fields: Only name is mandatory, but it's recommended to also provide short_name, start_url, display, and icons for the best experience.
Icon recommendations: Provide at least 192x192 and 512x512 PNG icons. The 512x512 icon is used for the splash screen, while 192x192 is used for the home screen icon.
π― Use Cases
- PWA Development: Quickly generate a standard manifest.json config file
- Site Upgrade: Add PWA support to existing websites for better UX
- App Publishing: Prepare configuration for Google Play (Trusted Web Activity)
- Learning: Understand PWA manifest fields and their meanings
β FAQ
Does the manifest have to be in the root directory?
Not necessarily, but it's strongly recommended. The start_url and scope paths are relative to the manifest file's location. Placing it in the root makes path behavior more predictable.
Can I name the manifest file something else?
Yes. While manifest.json is conventional, you can use any name (e.g. app.json). Just make sure to reference it correctly in your HTML with <link rel="manifest" href="app.json">.
Do I need to update the Service Worker after changing the manifest?
No. The browser reads the latest manifest when the user opens the site. However, some changes (like new icons) may require users to re-add the app to their home screen.