
build prod took a lot of time.1192s = 20min .
ionic info:
global packages:
@ionic/cli-utils : 1.5.0
Cordova CLI : 6.5.0
Ionic CLI : 3.5.0
local packages:
@ionic/app-scripts : 2.0.2
@ionic/cli-plugin-cordova : 1.4.1
@ionic/cli-plugin-ionic-angular : 1.3.2
Cordova Platforms : android 6.1.2 ios 4.3.1
Ionic Framework : ionic-angular 2.2.0
System:
Node : v7.9.0
OS : macOS Sierra
Xcode : Xcode 8.3.2 Build version 8E2002
ios-deploy : 1.9.1
ios-sim : 5.0.13
npm : 4.2.0
my computer
MacBook Pro (Retina, 13-inch, Mid 2014)
cpu:2.8 GHz Intel Core i5
men:8 GB 1600 MHz DDR3
any solution? thanks !
@danbucholtz
please help !~ uglifyjs took a lot of time~~
Is your app huge? How many pages are in it?
Thanks,
Dan
@danbucholtz thanks for ur time .
my app have about 50 pages. but i don't think it's a huge app. because i got a angular4.x app , about 60 pages . build quickly.
now , i use another way to build : ionic-app-scripts build --minifyjs --minifycss
very quickly . about 1min . this issuse caused by aot?
Hello @liangwenzhong , would you mind running npm run ionic:build --prod --buildToEs5 and see if that speeds things up for you? Thanks!
@jgw96 I'm sorry for replying you so late.

still slow ~~ and with error .
You probably need to give Node more memory.
which ionic (get path)
node --max_old_space_size=4096 /path/to/ionic serve
Thanks,
Dan
@danbucholtz
thanks for ur time .

about 700s . it took a lot of time .
and , after build --prod. when i run the app. it lost some css style .
@jgw96 is the --buildToEs5flag safe ?
I had a RangeError: Maximum call stack size only with the --prod build : the _webpack_ task was failed.
With the flag the _webpack_ task works and builds in 24sec
@jgw96 any solution ? thanks !
Hi,
may build is even slower:
cli packages:
@ionic/cli-utils : 1.9.1
ionic (Ionic CLI) : 3.9.1
global packages:
Cordova CLI : 7.0.1
local packages:
@ionic/app-scripts : 2.1.4
Cordova Platforms : android 6.2.3 browser 4.1.0 ios 4.4.0
Ionic Framework : ionic-angular 3.6.0
System:
Android SDK Tools : 26.0.2
Node : v8.4.0
npm : 5.3.0
OS : Linux 4.12
package.json: https://paste.xinu.at/hWne/
It is running for 30 minutes now: https://paste.xinu.at/iC4/
The step is: [11:08:31] webpack started ...
Without the --prod flag everything is working. It is a really small app, <10 pages.
/Edit/
It is still running: https://paste.xinu.at/BXYh1/
@jgw96
Do you have any suggestions for me? I already tried to get more output with --verbose and another OS but nothing.
/Edit2/
I stopped it now after 3h.
Most helpful comment
@danbucholtz
please help !~ uglifyjs took a lot of time~~