Ionic-app-scripts: ionic2 upgrade to version 2.0.1, the compilation speed is very slow!

Created on 24 Feb 2017  Â·  8Comments  Â·  Source: ionic-team/ionic-app-scripts

_From @iraychen on February 24, 2017 5:41_

Ionic version:
2.0.1/2.1.0

Upgrade to version 2, the compilation speed is very slow, especially the lint and NGC compilation process.

eg:
E:ProductsSourceMobileApp> ionic build android --release --prod

ionic-hello-world@ ionic:build E:ProductsSourceMobileApp
ionic-app-scripts build "--release" "--prod"

[11:29:31] ionic-app-scripts 1.1.3
[11:29:31] build prod started ...
[11:29:31] clean started ...
[11:29:31] clean finished in 6 ms
[11:29:31] copy started ...
[11:29:31] ngc started ...
[11:30:56] ngc finished in 84.65 s
[11:30:56] preprocess started ...
[11:30:56] optimization started ...
[11:30:56] copy finished in 85.19 s
[11:31:50] optimization finished in 54.53 s
[11:31:50] preprocess finished in 54.53 s
[11:31:50] webpack started ...
[11:33:54] webpack finished in 123.64 s
[11:33:54] sass started ...
[11:33:54] transpile bundle started ...
[11:34:25] transpile bundle finished in 31.23 s
[11:34:25] uglifyjs started ...
[11:34:27] sass finished in 33.43 s
[11:34:27] cleancss started ...
[11:35:59] uglifyjs finished in 93.90 s
[12:13:59] cleancss finished in 2371.44 s
[12:13:59] postprocess started ...
[12:13:59] postprocess finished in 30 ms
[12:13:59] lint started ...
[12:13:59] build prod finished in 2667.82 s
[12:14:20] lint finished in 21.23 s

ionic info:
Your system information:

ordova CLI: 6.5.0
Ionic Framework Version: 2.1.0
Ionic CLI Version: 2.2.1
Ionic App Lib Version: 2.2.0
Ionic App Scripts Version: 1.1.3
ios-deploy version: Not installed
ios-sim version: Not installed
OS: Windows 10
Node Version: v7.5.0
Xcode version: Not installed

_Copied from original issue: driftyco/ionic#10547_

low

All 8 comments

_From @graphefruit on February 24, 2017 9:6_

Hello @iraychen, this was already discussed here:
https://github.com/driftyco/ionic-app-scripts/issues/735#issuecomment-279736296

There won't be any big changes, maybe it compiles slow or fast, but for this you will get a smaller main.js

@iraychen,

This seems insanely slow. Unacceptably slow. Our 15 "page" app builds in like 30 seconds, so 90x faster. What sort of computer are you using? How big is your app? Please give me any relevant info to help.

The only area where I would expect some additional, new slowness would be with optimizations. We perform some logic there that must be enabled. I am thinking we can remove more of that step if you haven't opted in.

That still only knocks off 54 seconds out of 45 minutes, though.

Thanks,
Dan

@danbucholtz

my app pages total 150,main.js size is 4.4M。

That is a lot of pages. You'll benefit from Ionic 3 and lazy loading big time, then.

Thanks,
Dan

How big is your css file? cleancss takes forever to run in your build.

Thanks,
Dan

@danbucholtz Ionic 3? Woot? Did I miss some news blog or is it just "Ionic2" with a new number?

@graphefruit,

Just the next version of Ionic 2. It's just Ionic. Ionic 3, Ionic 4, Ionic 5, etc. No major breaking changes, optional breaking changes for lazy loading though.

Thanks,
Dan

Do you lack of follow up on this issue and not really anything we can do until Ionic 3 ships (soon!), I'm going to close this issue.

Thanks,
Dan

Was this page helpful?
0 / 5 - 0 ratings

Related issues

NoNameProvided picture NoNameProvided  Â·  4Comments

brandyscarney picture brandyscarney  Â·  4Comments

hermitdemschoenenleben picture hermitdemschoenenleben  Â·  3Comments

mburger81 picture mburger81  Â·  4Comments

itryan picture itryan  Â·  3Comments