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
?
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.
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.
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â ?