Ionic app size >17MB

My ionic 2 app size is more than 17 mb. How can i reduce the size of the app. please help

do you build with --prod?

1 Like

I second @FnnHuman on this.

Also, what plugins do you have installed?

ionic cordova plugin list
1 Like

6 posts were split to a new topic: I think so native plugins should not effect the size of ipa/apk and It should not effect the performance of the app

No Still in development mode

com.lampa.startapp 0.1.4 “startApp”

com.synconset.imagepicker 2.1.8 “ImagePicker”

cordova-open-native-settings 1.4.1 “Native settings”

cordova-plugin-actionsheet 2.3.3 “ActionSheet”

cordova-plugin-app-version 0.1.9 “AppVersion”

cordova-plugin-appavailability 0.4.2 “AppAvailability”

cordova-plugin-camera 2.4.1 “Camera”

cordova-plugin-compat 1.1.0 “Compat”

cordova-plugin-console 1.0.5 “Console”

cordova-plugin-device 1.1.4 “Device”

cordova-plugin-dialogs 1.3.3 “Notification”

cordova-plugin-filechooser 1.0.1 “File Chooser”

cordova-plugin-filepicker 1.1.4 “File Picker”

cordova-plugin-geolocation 2.4.3 “Geolocation”

cordova-plugin-google-analytics 1.8.3 “Google Universal Analytics Plugin”

cordova-plugin-inappbrowser 1.7.1 “InAppBrowser”

cordova-plugin-nativestorage 2.2.2 “NativeStorage”

cordova-plugin-screen-orientation 2.0.1 “Screen Orientation”

cordova-plugin-splashscreen 4.0.3 “Splashscreen”

cordova-plugin-statusbar 2.2.2 “StatusBar”

cordova-plugin-whitelist 1.3.1 “Whitelist”

cordova-plugin-wkwebview-engine 1.1.3 “Cordova WKWebView Engine”

cordova-sqlite-storage 2.0.4 “Cordova sqlite storage plugin”

cordova.plugins.diagnostic 3.1.7 “Diagnostic”

es6-promise-plugin 4.1.0 “Promise”

ionic-plugin-keyboard 2.2.1 “Keyboard”

phonegap-plugin-push 2.0.0 “PushPlugin”

Plugin List used by me

Hi,

As per the previous message I sent… can you do what I put above…

On your package.json under ‘scripts’ can you add a new one:

"buildprod": "ionic-app-scripts build --prod",

then run from the command line:

npm run-script buildprod

That will transpile your code into the www folder. Then if you can give us the list of the file sizes in your ‘build’ folder we’ll hopefully see something useful.

1 Like

Buidling with --prod will produce a smaller app. Do so.

Do you need all those plugins? The less you have, the smaller your app will be and the faster it will start.

1 Like

2 posts were merged into an existing topic: Native plugins should not effect the size of ipa/apk and It should not effect the performance of the app

What size of folder “resources” ?