ionic-team / capacitor-assets

Local Capacitor icon/splash screen resource generation tool
MIT License
493 stars 96 forks source link

fix: pwa icon generation and angular vue path #572

Closed dtarnawsky closed 6 months ago

dtarnawsky commented 7 months ago

FIxes WN-1459 When npx @capacitor/assets generate --pwa is run with an angular or vue project it looks in src/assets/assets folder but the default path for angular and vue assets is just src/assets.

This also replaces any icons in the manifest.webmanifest file (it would previously only change an icon if the filename existed already in the file.

Note: also reduced the linting errors

This should also fix #568 which is a side effect of not choosing the path correctly in an Angular or Vue project. Also fixes #520 which is caused by it checking for icons by their filename rather than their size.