From dcb6941e79ae1545840b3d26c216f1a2cc294bc9 Mon Sep 17 00:00:00 2001 From: Damien Dart Date: Thu, 23 Aug 2018 08:20:13 +0100 Subject: [PATCH] fix STDIN handling of CLI (#956) Fix a bug where input from STDIN is ignored even if no input files are specified on the command line. --- cli.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cli.js b/cli.js index 2ec6102..dd69fa5 100755 --- a/cli.js +++ b/cli.js @@ -297,7 +297,7 @@ if (inputDir || outputDir) { processDirectory(inputDir, outputDir, fileExt); } // Minifying one or more files specified on the CMD line -else if (typeof content === 'string') { +else if (content) { writeMinify(); } // Minifying input coming from STDIN -- 2.34.1