From 5357fbb5729cae837673489a9fc78fb1c60395e8 Mon Sep 17 00:00:00 2001 From: Gal Date: Tue, 13 Feb 2024 22:25:35 +0100 Subject: [PATCH] :zap: Remove excessive logging --- quartz/build.ts | 5 ----- 1 file changed, 5 deletions(-) diff --git a/quartz/build.ts b/quartz/build.ts index 1e4b745..a83fdd1 100644 --- a/quartz/build.ts +++ b/quartz/build.ts @@ -34,16 +34,11 @@ async function compressImages(inputDir, outputDir) { try { // Check if the output WebP file already exists await fs.access(outputWebpPath); - - // File exists, so skip compression - console.log(`Skipped: ${inputFilePath}`); } catch (error) { // File doesn't exist, proceed with compression await sharp(inputFilePath) .webp({ quality: 75 }) .toFile(outputWebpPath); - - console.log(`Compressed: ${inputFilePath}`); } }) );