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’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How To: Limit console output? #4486

Closed
schmuli opened this issue Feb 7, 2017 · 3 comments
Closed

How To: Limit console output? #4486

schmuli opened this issue Feb 7, 2017 · 3 comments

Comments

@schmuli
Copy link

schmuli commented Feb 7, 2017

OS

Windows 10

Versions

@angular/cli: 1.0.0-beta.30
node: 7.2.1
os: win32 x64
@angular/common: 2.4.6
@angular/compiler: 2.4.6
@angular/core: 2.4.6
@angular/forms: 2.4.6
@angular/http: 2.4.6
@angular/platform-browser: 2.4.6
@angular/platform-browser-dynamic: 2.4.6
@angular/material: 2.0.0-beta.1
@angular/router: 3.4.6
@angular/cli: 1.0.0-beta.30
@angular/compiler-cli: 2.4.6

Question

How can I limit or turn off progress information when running @angular/cli for a specific environment?

Running ng test on a CI (such as Circle CI) prints so much output to the console, over 400,000 characters, that the whole output cannot be viewed in the browser, and must be downloaded as a file.

This happens since when building with Webpack, a lot of progress details are printed to the console, which is usually replaced on update. However, Circle CI doesn't support replacing and instead just prints everything received, including the backspace characters.

@grizzm0
Copy link
Contributor

grizzm0 commented Feb 7, 2017

ng build --prod --progress=false

Edit: just saw you asked about test.. Same argument works for test.

@schmuli
Copy link
Author

schmuli commented Feb 7, 2017

Okay, so I found it: #2858

@schmuli schmuli closed this as completed Feb 7, 2017
@angular-automatic-lock-bot
Copy link

This issue has been automatically locked due to inactivity.
Please file a new issue if you are encountering a similar or related problem.

Read more about our automatic conversation locking policy.

This action has been performed automatically by a bot.

@angular-automatic-lock-bot angular-automatic-lock-bot bot locked and limited conversation to collaborators Sep 6, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants