Skip to content

Commit

Permalink
fix STDIN handling of CLI (#956)
Browse files Browse the repository at this point in the history
Fix a bug where input from STDIN is ignored even if no input files are specified on the command line.
  • Loading branch information
damiendart authored and alexlamsl committed Aug 23, 2018
1 parent 1f8df44 commit dcb6941
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cli.js
Expand Up @@ -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
Expand Down

0 comments on commit dcb6941

Please sign in to comment.