Skip to content

Commit

Permalink
Don't output the "Output written to..." message in dry run mode
Browse files Browse the repository at this point in the history
  • Loading branch information
papandreou committed Mar 4, 2019
1 parent 54cfc7f commit 4dcfaf2
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion lib/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -373,7 +373,9 @@ module.exports = async (argv, console) => {
`HTML/JS/CSS size increase: ${prettyBytes(sumSizesAfter - sumSizesBefore)}`
);
console.log(`Total savings: ${prettyBytes(totalSavings)}`);
console.log('Output written to', outRoot || assetGraph.root);
if (!dryRun) {
console.log('Output written to', outRoot || assetGraph.root);
}

return assetGraph;
};

0 comments on commit 4dcfaf2

Please sign in to comment.