Generate icons
Barbapapazes opened this issue · comments
Yeah. I guess we can try to generate other sizes. Ideally should be core or ad-hoc to the Nuxt core but we can try to do a simple POC right into this project to generate other variants until that happens. No need to go for full PWA of course only icons.
Originally posted by @pi0 in #5 (comment)
Could we use https://vite-pwa-org.netlify.app/assets-generator/api? Or do we have to make something else?
I think mainly we need to generate icons. For PWA module, I made jimp-compact(little rusty but works). We can also use Sharp directly however native dependency overhead not worth it.
It think apart from it and mainly we need to find a way to virtually render this assets (using a server route) and add it to prerender.routes
array so that we don't add more files to the end-users (playground) public
dir.
Resvg is already shipped with og image, I can expose a compostable to use it? As long as base icon is SVG shouldn't have issues
current docs situation is sad. I give up and until bases are fixed I don't think even putting this in plan makes any sense.