mirror of
https://github.com/whoisclebs/lodash.git
synced 2026-02-07 10:07:48 +00:00
Change reported minified size from KB to bytes.
Former-commit-id: 35276bfeda03ca7158f19b265cc5d0863dd9286f
This commit is contained in:
@@ -199,7 +199,7 @@
|
|||||||
}
|
}
|
||||||
// store the gzipped result and report the size
|
// store the gzipped result and report the size
|
||||||
this.compiled.gzip = result;
|
this.compiled.gzip = result;
|
||||||
console.log('Done. Size: %d KB.', result.length);
|
console.log('Done. Size: %d bytes.', result.length);
|
||||||
|
|
||||||
// next, minify the source using only UglifyJS
|
// next, minify the source using only UglifyJS
|
||||||
uglify.call(this, this.source, onUglify.bind(this));
|
uglify.call(this, this.source, onUglify.bind(this));
|
||||||
@@ -236,7 +236,7 @@
|
|||||||
|
|
||||||
// store the gzipped result and report the size
|
// store the gzipped result and report the size
|
||||||
this.uglified.gzip = result;
|
this.uglified.gzip = result;
|
||||||
console.log('Done. Size: %d KB.', result.length);
|
console.log('Done. Size: %d bytes.', result.length);
|
||||||
|
|
||||||
// next, minify the Closure Compiler minified source using UglifyJS
|
// next, minify the Closure Compiler minified source using UglifyJS
|
||||||
uglify.call(this, this.compiled.source, message, onHybrid.bind(this));
|
uglify.call(this, this.compiled.source, message, onHybrid.bind(this));
|
||||||
@@ -271,7 +271,7 @@
|
|||||||
}
|
}
|
||||||
// store the gzipped result and report the size
|
// store the gzipped result and report the size
|
||||||
this.hybrid.gzip = result;
|
this.hybrid.gzip = result;
|
||||||
console.log('Done. Size: %d KB.', result.length);
|
console.log('Done. Size: %d bytes.', result.length);
|
||||||
|
|
||||||
// finish by choosing the smallest compressed file
|
// finish by choosing the smallest compressed file
|
||||||
onComplete.call(this);
|
onComplete.call(this);
|
||||||
|
|||||||
Reference in New Issue
Block a user