Skip to content

Commit

Permalink
Disable when output is not TTY
Browse files Browse the repository at this point in the history
  • Loading branch information
matpeder committed Oct 23, 2017
1 parent 9a8a07b commit c538aac
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 c538aac

Please sign in to comment.