diff --git a/index.js b/index.js index a1252bb..0876747 100644 --- a/index.js +++ b/index.js @@ -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);