build ionic app

ionic build android –release

jarsigner -verbose -sigalg SHA1withRSA -digestalg SHA1 -keystore my-release-key.keystore android-release-unsigned.apk alias_name

./zipalign -v 4 android-release-unsigned.apk ice11.apk

How to Minify an Ionic Application for Production

Part of this we will build into Ionic so that the process is executed every time we make a change in the app (whilst ionic serve is running) and the rest we will achieve with a grunt task. In a previous post I discussed how to use grunt to automatically upload apps to PhoneGap Build and we will be building on that.

UPDATE: If you want to use plain old PhoneGap instead of PhoneGap Build make sure you check out this post as well.

view more