style: fix comment

This commit is contained in:
weyusi 2019-04-23 17:57:52 +09:30
parent ce7a1f607d
commit cceae36368
1 changed files with 2 additions and 2 deletions

View File

@ -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)