This morning I was building apps in PROD mode in Ionic cloud and they were 4 megs. This afternoon, they are now 7megs and it’s using the wrong environment variable, hence it’s using my Dev settings, not my Prod settings. However they ARE signed with the correct PROD certificate as the App Store won’t let you upload an APK file that is in debug mode.
When I do a local Android platform build it is 4 megs. It’s only when I use Ionic Cloud it seems that minification and AOT is NOT working.
I can view the “release” build with GapDebug I can see it is not minfied. Here is the code I use in the CLI:
ionic package build android --profile prod --prod --release
I don’t think I have changed anything on my side - is anyone else experiencing Ionic Cloud Build issues in prod mode?
- It is building with the Prod cert
- It does show (Release) in the build list (https://www.screencast.com/t/t3Rmfemw4E)
- However it is NOT minifying (and I assume AOTing) the file
Cordova CLI: 6.5.0
Ionic Framework Version: 2.3.0
Ionic CLI Version: 2.2.1
Ionic App Lib Version: 2.2.0
Ionic App Scripts Version: 1.2.2
ios-deploy version: Not installed
ios-sim version: Not installed
OS: Windows 10
Node Version: v6.10.0
Xcode version: Not installed
PS - I can narrow down the time to when it started - I did 2 iOS builds 20 minutes apart which took the same time to build (you can see them here: https://www.screencast.com/t/vwbrpM4o4bhV)
The earlier one is 4 megs and the one 20 min later jumped to over 7megs - both in Release mode. This was at 7:46pm UTC time (30/3/17) if that helps.