pwa: add manifest and related app icons
#41
Merged
offbyn
merged 1 commits from pwa-add-manifest
into master
2 years ago
Loading…
Reference in New Issue
There is no content yet.
Delete Branch 'pwa-add-manifest'
Deleting a branch is permanent. It CANNOT be undone. Continue?
that nostr.ch has a pretty app icon when adding to home screen.
fixes: #15
lgtm but come on, png can be smaller! :)
@ -36,6 +39,7 @@ export const options = {
}),
NodeGlobalsPolyfillPlugin({buffer: true}),
replaceOnCopyPlugin(/about\.html$/),
replaceOnCopyPlugin(/manifest\.json$/),
if there's nothing to replace, you could instead add the .json extension to the loader:
and remove
replaceOnCopyPlugin(/manifest\.json$/)
from here.I did at first, but then it also found some package.json (not ours iirc)
the only way i could make it work is with
replaceOnCopyPlugin(/manifest\.json$/)
ah good to know! 👍
adding
'.json': 'copy',
adds the following (at least on pc):🤮 yeah, keep the replaceOnCopyPlugin then!
I used pngquant, there is prob always a smaller format.
prob webp would be better.
@x1ddos do you know if these icons are only downloaded once, when user adds-to-home screen?
are they downloaded again once they are on your homescreen?
then I guess a bigger joice of smaller format would make sense.
or drop all pngs/webp etc and only provide the .svg
(294B asssets/nostr-favicon.svg), but probably not all systems support svg :(
no idea but if i had to guess, i'd say it depends on the platform. android will probaby never re-download automatically. iphone - no sure. a chromebook might since web/http is all it does :)
i would keep png. was just saying it could be smaller but not a big deal.
@ -0,0 +1,21 @@
{
"$schema": "https://json.schemastore.org/web-manifest-combined.json",
"background_color": "#191919",
dark-mode first :)
b86cf6f687
into master 2 years agoReviewers
b86cf6f687
.Step 1:
From your project repository, check out a new branch and test the changes.Step 2:
Merge the changes and update on Gitea.