koute / cargo-web

A Cargo subcommand for the client-side Web
Apache License 2.0
1.11k stars 80 forks source link

cargo web uses color even when not supported #247

Open jgarvin opened 4 years ago

jgarvin commented 4 years ago

Color should only be used when the output is a tty and when the terminal supports color. rustc/cargo normally understand this, but when invoked through cargo web build I get a lot of this:

 Compiling webidl v0.8.0

This is annoying when you are redirecting stdout/stderr to a log file for example.