pwa: add manifest and related app icons
#41
Merged
offbyn
merged 1 commits from pwa-add-manifest
into master
2 years ago
Binary file not shown.
After Width: | Height: | Size: 4.6 KiB |
@ -0,0 +1,3 @@
|
||||
<svg xmlns="http://www.w3.org/2000/svg" width="331.088" height="331.088" viewBox="0 0 87.6 87.6">
|
||||
<circle cx="90.953" cy="119.632" r="37.72" style="fill:none;fill-opacity:1;stroke:#f0f;stroke-width:12.16;stroke-dasharray:none;stroke-opacity:1" transform="translate(-47.152 -75.832)"/>
|
||||
</svg>
|
After Width: | Height: | Size: 294 B |
@ -0,0 +1,21 @@
|
||||
{
|
||||
"$schema": "https://json.schemastore.org/web-manifest-combined.json",
|
||||
"background_color": "#191919",
|
||||
offbyn
commented 2 years ago
Review
dark-mode first :) dark-mode first :)
|
||||
"categories": ["news", "social"],
|
||||
"description": "a nostr news client to connect with the world.",
|
||||
"display": "fullscreen",
|
||||
"name": "nostr",
|
||||
"short_name": "nostr",
|
||||
"start_url": "https://nostr.ch/",
|
||||
"icons": [{
|
||||
"src": "assets/nostr-favicon.png",
|
||||
"sizes": "256x256",
|
||||
"type": "image/png"
|
||||
}, {
|
||||
"src": "favicon.ico",
|
||||
"sizes": "32x32"
|
||||
}, {
|
||||
"src": "assets/nostr-favicon.svg",
|
||||
"sizes": "any"
|
||||
}]
|
||||
}
|
Loading…
Reference in New Issue
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!