Skip to content
This repository has been archived by the owner on Dec 29, 2022. It is now read-only.

Update manifest.json #1067

Merged
merged 2 commits into from
Oct 2, 2017
Merged

Update manifest.json #1067

merged 2 commits into from
Oct 2, 2017

Conversation

keanulee
Copy link
Contributor

@keanulee keanulee commented Oct 2, 2017

In light of the changes in #1049 and discussions linked to from that PR, we're updating the web manifest to be consistent with Shop and News.

  • start_url is set to absolute /. This is because with prpl-server, manifest.json is served from the build-specific directory (e.g. /es6-bundled/manifest.json), and the manifest needs to cover URLs outside of that directory (e.g. "/", or "/list/1")
    • Analytics params (utm_*) will be excluded and left to user's choice
  • scope will be left undefined. It is assumed that everything on the same origin is in scope.
  • icon srcs are always relative to manifest.json, (even with prpl-server when they would be served from /es6-bundled/images/manifest/...png)

As a result of these changes, serving the app out of a non-root URL (e.g. example.com/my-app/) will require changes to the manifest. Changes are already required in other parts of the app (e.g. the <base> tag in index.html), so this wouldn't be a new issue.

Copy link
Contributor

@abdonrd abdonrd left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks @keanulee! 👏

manifest.json Outdated
"start_url": "/",
"display": "standalone",
"theme_color": "#3f51b5",
"background_color": "#3f51b5",
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please, remove the trailing comma.

@abdonrd abdonrd merged commit c53e1fc into master Oct 2, 2017
@abdonrd abdonrd deleted the manifest-json branch October 2, 2017 22:02
@abdonrd abdonrd mentioned this pull request Oct 3, 2017
6 tasks
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants