Skip to content

Commit

Permalink
Merge pull request #2 from matpeder/master
Browse files Browse the repository at this point in the history
Disable when output stream is not TTY
  • Loading branch information
hyunchulkwak authored Oct 26, 2017
2 parents 9a8a07b + c538aac commit 172cd6c
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,10 @@ var progressOptions = {
};

function SimpleProgressPlugin(options) {
if (!process.stderr.isTTY) {
return function () {};
}

if (options) {
messageTemplate = options.messageTemplate || messageTemplate;
progressOptions = objectAssign(progressOptions, options.progressOptions);
Expand Down

0 comments on commit 172cd6c

Please sign in to comment.