1.0.3 • Published 5 years ago
cordova9-icon v1.0.3
cordova9-icon
Automatic icon resizing for Cordova. Create an icon in the root folder of your Cordova project and use cordova9-icon to automatically resize and copy it for all the platforms your project supports. Based on cordova-icon package
Installation
$ sudo npm install cordova9-icon -g
Requirements
- ImageMagick installed
- At least one platform was added to your project (cordova platforms docs)
- Cordova's config.xml file must exist in the root folder (cordova config.xml docs)
Usage
Create an icon.png
file in the root folder of your cordova project.
You can provide a platform-specific icon by naming it icon-[platform].png
(e.g icon-android.png
, icon-ios.png
).
Then run:
$ cordova9-icon
Notes:
- Your
config.ml
file will not be updated by the tool (because images are automatically created in the good folders) - Therefore, in your
config.xml
, be sure to remove all lines looking like<icon src="res/android/ldpi.png" density="ldpi" />
License
MIT