Skip to content

Suggestions for improvement #34

@atjn

Description

@atjn

Hello and thank you for working on this!

I tried to use it in my webapp and decided that it was too limited for my use case, but I would like to mention my issues for you in case it can help you improve the package :)

This is just a quick write down. If I have misunderstood something, or you don't agree with it, feel free to ignore it. Also feel free to close this issue whenever you want.

  • The web app manifest should also link to the original SVG. The SVG is the best logo to use if the client supports SVG.
  • The original SVG logo should be minified using something like SVGO.
  • The web app manifest should specify purpose: "any" on images that are not maskable .
  • The package should be able to generate monochrome icons for the web app manifest.
  • When generating maskable icons, you should be able to choose which background color is used (currently it is white). Apparently possible, but not documented.
  • IMO you don't need an ico file in the minimal-2023 preset when you can serve a png file instead. It is very well supported.
  • You should be able to specify different icons for the any, maskable, and monochrome purposes. If you want your icon to look really well, you sometimes need to change it in a way that is incompatible with the other purposes.
  • The package should be integrated better with Vite. I don't want to manually add the manifest and HTML tags, I want it to either be completely automatic, or be implemented as virtual modules that return html which I can insert in the code. (being solved in #feat: add experimental PWA assets generation and injection vite-plugin-pwa#621)
  • I don't want the generated images to be pasted into the same folder as the original logo. That folder is for source files, anything that is generated should be in a temporary folder, or should only be in the final build output. (being solved in #feat: add experimental PWA assets generation and injection vite-plugin-pwa#621)
  • Consider adding a minimal-standard preset. I think Apple's approach to logos is really bad, they shouldn't need custom images when they can just read the images in the manifest. I would prefer a preset that does not have any images or tags which are custom designed only for a single company or device.
  • Generated icons have jagged edges #35

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions