Closed anilanar closed 3 years ago
We are printing to stderr
to be able to save results in a file without loaders:
npx size-limit > result.txt
mico-spinner
, as I believe, uses a logic “what is not main result should be in stderr
”.
I can change stream if you give me some proofs, that it is not UNIX way or something similar.
Makes sense, thanks :+1:
yarn size-limit
prints "Adding to empty webpack project" at the beginning andyarn size-limit 2> /dev/null
does not. That meanssize-limit
prints "Adding to empty webpack project" intostderr
which is considered a warning/error by some CI tools and causes CI to fail.We can ignore that output by using
2> /dev/null
but that can cause loss of valuable information if/when something actually goes wrong.Q: Why print to
stderr
instead ofstdout
?