Ionic app icon generator

Table of Contents

Ionic app icon generator

Tạo icon cho app IONIC

[ERROR] cordova-res was not found on your PATH. Please install it globally

ionic cordova resources
> cordova-res
[cordova-res] 'cordova-res' is not recognized as an internal or external command,
[cordova-res] operable program or batch file.
[ERROR] cordova-res was not found on your PATH. Please install it globally:

        npm i -g cordova-res

Run npm install -g cordova-res to install cordova-res

image

Ionic create icon and splash screen resources

The source image for icons should ideally be at least 1024×1024px and located at resources/icon.png. The source image for splash screens should ideally be at least 2732×2732px and located at resources/splash.png. If you used ionic start, there should already be default Ionic resources in the resources/ directory, which you can overwrite.

Then run

ionic cordova resources

image

image

Preferences

  1. https://ionicframework.com/docs/cli/commands/cordova-resources
  2. https://stackoverflow.com/questions/60549868/ionic-5-how-to-replace-default-icon-and-splash-screen-image-and-generate-resou

Leave a Reply

Your email address will not be published. Required fields are marked *