From cceae363680d9f38e4b21a9bd47e69a99cc74125 Mon Sep 17 00:00:00 2001 From: weyusi Date: Tue, 23 Apr 2019 17:57:52 +0930 Subject: [PATCH] style: fix comment --- lib/filter.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/filter.js b/lib/filter.js index 0c5cf78..a8f3f9c 100644 --- a/lib/filter.js +++ b/lib/filter.js @@ -106,9 +106,9 @@ function logicSvg () { assetPath.on('data', (chunk) => (assetTxt += chunk)) assetPath.on('end', () => { if (assetTxt.length) { - // gzip compress using highest level + // Minify using svgo new svgo(options).optimize(assetTxt).then(function(result) { - // Save the compressed file to .gz + // Replace the original file with the minified. route.set(path, result.data) // Logging let saved = ((assetTxt.length - result.data.length) / assetTxt.length * 100).toFixed(2)