Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

Angular CLI taking lot of time to build Angular Application #13899

Open
HegdeSach opened this Issue Mar 13, 2019 · 0 comments

Comments

Projects
None yet
2 participants
@HegdeSach
Copy link

HegdeSach commented Mar 13, 2019

馃悶 Bug report

Command (mark with an x)

- [ ] new
- [x] build
- [ ] serve
- [ ] test
- [ ] e2e
- [ ] generate
- [ ] add
- [ ] update
- [ ] lint
- [ ] xi18n
- [ ] run
- [ ] config
- [ ] help
- [ ] version
- [ ] doc

Is this a regression?

No

Description

Angular CLI taking more than 15 minute to build Angular Application. Any way to speed up the build process keeping build preference same?

Below are the specifications of my application,

I am using following command to build my application ( Normal ng build --prod is throwing Javascript heap related error )


node --max_old_space_size=5048 ./node_modules/@angular/cli/bin/ng build --prod

Application is huge and it has following module, component counts,

image

馃敩 Minimal Reproduction

馃敟 Exception or Error





馃實 Your Environment




Angular CLI: 6.2.8
Node: 8.11.2
OS: darwin x64
Angular: 6.1.10
... animations, common, compiler, compiler-cli, core, forms
... http, language-service, platform-browser
... platform-browser-dynamic, router

Package                           Version
-----------------------------------------------------------
@angular-devkit/architect         0.6.8
@angular-devkit/build-angular     0.6.8
@angular-devkit/build-optimizer   0.6.8
@angular-devkit/core              0.6.8
@angular-devkit/schematics        0.8.8
@angular/cdk                      6.4.7
@angular/cli                      6.2.8
@angular/flex-layout              6.0.0-beta.18
@angular/material                 6.4.7
@ngtools/webpack                  6.0.8
@schematics/angular               0.8.8
@schematics/update                0.8.8
rxjs                              6.3.3
typescript                        2.7.2
webpack                           4.8.3

Anything else relevant?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can鈥檛 perform that action at this time.