Ionic Pro: Why ionic build for dev?


#1

Context: I’m trying to find out why my app’s load time takes so long (10sec).

I’m using ionic pro’s deploys and found out that it builds for dev environment, is that the correct thing to do there?

Won’t it affect the size of the generated files, hence have my app loading time slower?

> ionic-app-scripts build

[23:04:53]  ionic-app-scripts 2.1.4 
[23:04:53]  build dev started ... 
[23:04:53]  clean started ... 
[23:04:53]  clean finished in 1 ms 
[23:04:53]  copy started ... 
[23:04:53]  transpile started ... 
[23:04:59]  transpile finished in 6.29 s 
[23:04:59]  preprocess started ... 
[23:04:59]  deeplinks started ... 
[23:04:59]  deeplinks finished in 21 ms 
[23:04:59]  preprocess finished in 23 ms 
[23:04:59]  webpack started ... 
[23:04:59]  copy finished in 6.59 s 
[23:05:18]  webpack finished in 18.59 s 
[23:05:18]  sass started ... 
[23:05:20]  sass finished in 2.41 s 
[23:05:20]  postprocess started ... 
[23:05:20]  postprocess finished in 11 ms 
[23:05:20]  lint started ... 
[23:05:20]  build dev finished in 27.42 s 

#2

fwiw here is my ionic info, if anyone has any insight on what I could be doing to improve loading time, I’d love that:

cli packages: (/Users/rafa/.nvm/versions/node/v8.5.0/lib/node_modules)

    @ionic/cli-utils  : 1.12.0
    ionic (Ionic CLI) : 3.12.0

global packages:

    cordova (Cordova CLI) : 7.0.1

local packages:

    @ionic/app-scripts : 2.1.4
    Cordova Platforms  : android 6.2.3 ios 4.5.0
    Ionic Framework    : ionic-angular 3.6.1-201709131804

System:

    Android SDK Tools : 25.2.3
    ios-deploy        : 1.9.2
    Node              : v8.5.0
    npm               : 5.4.2
    OS                : macOS Sierra
    Xcode             : Xcode 9.0 Build version 9A235

Misc:

    backend : pro

#3

https://ionicframework.com/docs/pro/basics/concepts/customizing-builds.html#customizing-your-builds

And the usual disclaimer:
Ionic Pro is a hosted and closed source service, so there is not much we, the community, can help you with.
There is a FAQ and common/known issues at https://ionic.zendesk.com/hc/en-us/sections/115003254647-FAQ-Common-Issues
Official documentation is at https://ionic.zendesk.com/hc/en-us and https://ionicframework.com/docs/pro/
You can - and should - contact support at http://ionicframework.com/support#support


#4

f*** awesome! thanks!