Skip to content
This repository has been archived by the owner on Jan 15, 2022. It is now read-only.

Commit

Permalink
fix html quiet mode output
Browse files Browse the repository at this point in the history
  • Loading branch information
Alif Rachmawadi committed Aug 8, 2019
1 parent 9f75ab1 commit 1b4998d
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions lib/command.js
Original file line number Diff line number Diff line change
Expand Up @@ -126,8 +126,10 @@ async function listCmd(inputs, cmd) {
async function htmlCmd(input, cmd) {
const data = await htmlBundle(input, cmd);

if (!cmd.quiet && cmd.output) {
console.log(`HTML output is ready: ${cmd.output}`);
if (cmd.output) {
if (!cmd.quiet) {
console.log(`HTML output is ready: ${cmd.output}`);
}
} else {
console.log(data);
}
Expand Down

0 comments on commit 1b4998d

Please sign in to comment.