I am working in Ionic for couple of months. I developed ionic 2 App with more 10pages and App size was 6Mb after Apk Generated, but in ionic 3 I have not even used more than 8pages and less lines of code then compared to Ionic 2 App. Still my Ionic 3 App Size is 35Mb. Any solution for this?
Note: No images are used for both App,
and is it required to keep .module.ts in all the pages which is new feature in Ionic 3.
How are you building your app?
What is your
ionic info output?
What plugins are you using?
@ionic/cli-utils : 1.9.2
ionic (Ionic CLI) : 3.9.2
Cordova CLI : 7.0.1
@ionic/app-scripts : 2.1.3
Cordova Platforms : android 6.2.3
Ionic Framework : ionic-angular 3.6.0
Android SDK Tools : 25.2.3
Node : v8.2.1
npm : 5.3.0
OS : Linux 4.4
I am using one Highchart Plugin which is external plugin
By Removing this pages will help in reduce App size…???
Are else is there any ways to reduce App size
yes and use “–prod” tab to build apk
I would suggest creating a new blank ionic app and then repalce the src folder n the blank version with the src folder from your original version - then produce the APK and see what the file size is.
From my own experience the update procedure keeps files in the www and production folders which have been deleted or renamed in the src folder.
By this you are claiming that you have absolutely no other plugins? I find that extremely hard to believe.
I have the same problem.
My apk size is about 20MB using --prod flag
but it should not be so big size!