$ ionic cordova resources
Automatically create icon and splash screen resources
$ ionic cordova resources [<platform>]
Ionic can automatically generate perfectly sized icons and splash screens from source images (.png, .psd, or .ai) for your Cordova platforms.
The source image for icons should ideally be at least 1024x1024px and located at resources/icon.png. The source image for splash screens should ideally be at least 2732x2732px 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.
You can also generate platform-specific icons and splash screens by placing them in the respective **resources/
ionic cordova resources will automatically update your config.xml to reflect the changes in the generated images, which Cordova then configures.
Cordova reference documentation:
- Icons: https://cordova.apache.org/docs/en/latest/config_ref/images.html
- Splash Screens: https://cordova.apache.org/docs/en/latest/reference/cordova-plugin-splashscreen/
This command uses Ionic servers, so we require you to be logged into your free Ionic account. Use
ionic login to login.
||The platform for which you would like to generate resources (e.g.
||Generate icon resources|
||Generate splash screen resources|
$ ionic cordova resources $ ionic cordova resources ios $ ionic cordova resources android