question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

After ionic cli v4 update, apk and ipa gained more than 1mb!

See original GitHub issue

Description: I built a new version of my app and before submitting it to the store I had a look to the ipa and apk size and both gained more than 1mb size!

On my side I didn’t changed or fetched any libs and just changed one or two lines of code. The only library update I did was upgrading the CLI to v4

My current app in store:

Android -> 5.9 Mb iOS ipa -> 9.7 Mb

Build with the CLI v4:

Android -> 7.2 Mb iOS ipa -> 10.9 Mb

My ionic info:

Ionic:

ionic (Ionic CLI) : 4.0.1 (/usr/local/lib/node_modules/ionic) Ionic Framework : ionic-angular 3.9.2 @ionic/app-scripts : 3.1.11

Cordova:

cordova (Cordova CLI) : 8.0.0 Cordova Platforms : android 7.1.1, ios 4.5.4, pwa

System:

Android SDK Tools : 26.1.1 ios-deploy : 1.9.2 ios-sim : 5.0.13 NodeJS : v10.4.0 (/usr/local/bin/node) npm : 6.1.0 OS : macOS High Sierra Xcode : Xcode 9.4.1 Build version 9F2000

Environment:

ANDROID_HOME : /Users/me/Library/Android/sdk

Workaround

Downgrading to Ionic CLI 3.20.0 solves the issue, my app size was back to its previous weight

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Reactions:3
  • Comments:5 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
imhoffdcommented, Jul 30, 2018

I believe the above commit will fix this issue. When I ran it with that commit, my www/ directory went from 3.5M to 1.3M.

The fix should be in 4.0.2. If it doesn’t work, let me know! Thanks for the issue!

0reactions
imhoffdcommented, Aug 1, 2018

Nice! Great to hear. 👍

Read more comments on GitHub >

github_iconTop Results From Across the Web

App Size is too large in --prod - Ionic Framework
I am using ionic cli 4.7.1. I was developing on windows but now i changed to mac and my app size got 4x...
Read more >
zmNinja Documentation - Read the Docs
Yeah, look - I understand zmNinja won't work if ZoneMinder web ... This also means that you can't display more than 6 monitors...
Read more >
Untitled
Syngo imaging dicom conformance statement, Undateables season 3 episode 4, ... Paptamasi strand, Dreams are worth more than money freestyle download, ...
Read more >
Cannot update Ionic-CLI - node.js - Stack Overflow
According to the doc, ionic g is only available since Ionic 2.0.0. And your system info says that you have : Ionic CLI...
Read more >
Full text of "The Astronomy Book" - Internet Archive
A good observer ought to have more than just a facility with a telescope in his ... Search | [Stungart 4 Vicinity |...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found