From 4dcfaf2ecf7a60af49fc77d94eab82b4eaa1b69f Mon Sep 17 00:00:00 2001 From: Andreas Lind Date: Mon, 4 Mar 2019 22:17:47 +0100 Subject: [PATCH] Don't output the "Output written to..." message in dry run mode --- lib/main.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lib/main.js b/lib/main.js index fe5c6a90..4757a9d9 100644 --- a/lib/main.js +++ b/lib/main.js @@ -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; };