mirror of https://github.com/curbengh/hexo-yam
style: fix comment
This commit is contained in:
parent
ce7a1f607d
commit
cceae36368
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue