|
|
|
@ -52,7 +52,6 @@ const plugin = (file, librarySettings, inputs, otherArguments) => {
|
|
|
|
|
|
|
|
|
|
|
|
const ratio = parseInt((newSize / oldSize) * 100, 10);
|
|
|
|
const ratio = parseInt((newSize / oldSize) * 100, 10);
|
|
|
|
|
|
|
|
|
|
|
|
console.log(newSize, oldSize);
|
|
|
|
|
|
|
|
const sizeText = `New file has size ${newSize.toFixed(3)} MB which is ${ratio}% `
|
|
|
|
const sizeText = `New file has size ${newSize.toFixed(3)} MB which is ${ratio}% `
|
|
|
|
+ `of original file size: ${oldSize.toFixed(3)} MB`;
|
|
|
|
+ `of original file size: ${oldSize.toFixed(3)} MB`;
|
|
|
|
|
|
|
|
|
|
|
|
|