question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Flag to disable build/serve colors for text viewers that don't support them

See original GitHub issue

Bug Report or Feature Request (mark with an x)

- [ ] bug report -> please search issues before submitting
- [x] feature request

Versions.

@angular/cli: 1.0.0

Repro steps.

ng build >> log.txt

The log given by the failure.

chunk {4} inline.bundle.js, inline.bundle.js.map (inline) 0 bytes [entry] [rendered]

Desired functionality.

There’s no way to disable colors in output. Leading to lines and lines of: chunk {4} inline.bundle.js, inline.bundle.js.map (inline) 0 bytes [entry] [rendered] in log files. This makes log lines absurdly long and generally reader unfriendly. Plus, the color option being only available for testing makes it even more confusing, as one would expect such an option to be global.

Mention any other details that might be useful.

This is an issue with any non-console or otherwise color unsupporting viewer. For both builds and live reload, in high reliance systems it doesn’t seem viable to constantly designate a terminal window for the output of one component of the product, since 95+% of the time you won’t need it.

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Reactions:56
  • Comments:16 (1 by maintainers)

github_iconTop GitHub Comments

12reactions
v-karbovnichycommented, Jan 11, 2018

@sumitarora consider changing the label to type: bug as per previous comment, and also maybe change the priority 🙏

9reactions
ivanseidelcommented, Jun 30, 2017

This should be a bare basic option for Angular cli, as it is intended to be used within a CI, and it might not have color support out of the box (With Jenkins + Blue Ocean for instance, it cannot be achieved. And the logs are just crazy and hard to look at)

I think it should be a high priority, as the main reason for a CLI is to be a interface from the User to the Code, and we cannot understand the interface if information is not clear.

screen shot 2017-06-30 at 10 13 14 screen shot 2017-06-30 at 10 13 19
Read more comments on GitHub >

github_iconTop Results From Across the Web

List of Chromium Command Line Switches - Peter Beverloo
List of Chromium Command Line Switches. There are lots of command lines which can be used with the Google Chrome browser. Some change...
Read more >
Just-in-Time Mode - Tailwind CSS
This flag is a temporary workaround for incompatible tooling, and will eventually be removed in a future version of Tailwind CSS.
Read more >
Easy Checks – A First Review of Web Accessibility - W3C
These checks cover just a few accessibility issues and are designed to be quick and easy, rather than definitive. A web page could...
Read more >
Closed Captioning & Everything You Need to Know About It
Learn the history of closed captioning, how to add and create captions, benefits of captioning and laws around captioning.
Read more >
Xcode 13 Release Notes | Apple Developer Documentation
The compiler supports this flag with deployment targets of macOS 11, iOS and iPadOS 14, tvOS 14, watchOS 7 and later. The flag...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found