In Ionic framework you can use the
command to automatically generate icons and splash screen of different sizes and for optionally different platforms (iOS, Android).
All you have to do is place the icon.png and splash.png in the resources folder in the root of the application and execute the aforementioned command. Ionic will generate the needed configuration in the config.xml file. More about it on the official blog post.