Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Save the Angular CLI build logs to a file

I've checked here and there's no option that can be passed to the Angular CLI to save logs to a file. I've tried this:

ng build |& tee output.txt

The problem is that the resulting file is crashing my Atom editor and in Geany it's unreadable, because of the characters like [BS], [ESC](their removal messes up formatting and the file is still unreadable).

Could you please share your tricks, good sirs?

like image 239
manidos Avatar asked Mar 26 '17 03:03

manidos


1 Answers

Try

ng build &> log.txt
like image 136
Marcel Avatar answered Oct 13 '22 01:10

Marcel