speed-measure-webpack-plugin icon indicating copy to clipboard operation
speed-measure-webpack-plugin copied to clipboard

When `outputTarget` is a string, disable color

Open thw0rted opened this issue 4 years ago • 0 comments

Console output uses ANSI color escape sequences (^[40m etc) to prettify the results, but if the user provides a string value for the outputTarget, human-readable output is dumped to a text file. As a rule, text editors / IDEs generally do not support escape sequences in text files, so this output mode is likely to be unusable. Color sequences should only be used when the output target is a TTY (console.log).

thw0rted avatar Apr 14 '21 10:04 thw0rted