Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

287
Vistas
Change Colors in Angular CLI

The script that starts my Angular CLI development Web server produces almost illegible error messages, such as the following.[TypeScript Compiler Diagonstics]

I would much prefer something like this:[Legible Error Message

Before I start digging into the oodles of configuration files associated with my Angular/CLI installation, I thought that I would start by asking for directions.

about 4 years ago · Santiago Trujillo
2 Respuestas
Responde la pregunta

0

The easiest way to do it is to change characters in the output stream of the application that controls the color.

Linux bash:

ng serve | tr $INPUTCOLOR $OUTPUTCOLOR

or

ng serve | sed -r "s/$INPUTCOLOR/$OUTPUTCOLOR/g'

Windows PowerShell:

ng serve | ForEach-Object { $_ -replace $INPUTCOLOR, $OUTPUTCOLOR }

The $INPUTCOLOR and $OUTPUTCOLOR is needed to be set to run the code. This way every red foreground color can be changed with red background and white foreground color.

about 4 years ago · Santiago Trujillo Denunciar

0

You can achieve this by adding | %{$_ -replace "\x1B\[([0-9]{1,2}(;[0-9]{1,2})?)?[mGK]",""} to the end of the command. For example:

ng build | %{$_ -replace "\x1B\[([0-9]{1,2}(;[0-9]{1,2})?)?[mGK]",""}

Source: https://github.com/angular/angular-cli/issues/6478

about 4 years ago · Santiago Trujillo Denunciar
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda