From: Tim Wood Date: Mon, 17 Oct 2011 20:37:08 +0000 (-0700) Subject: Adding filesize of unminified source to build script X-Git-Tag: 1.0.1~4 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=37fb098ed0f7ff9e0918d7b4ba482fdb4fa9285f;p=thirdparty%2Fmoment.git Adding filesize of unminified source to build script --- diff --git a/build.js b/build.js index 4c827b907..1e1bce9c3 100755 --- a/build.js +++ b/build.js @@ -159,4 +159,7 @@ function hint(source, name) { if (hint(source, 'moment')) { minifyToFile(source, 'moment', MINIFY_COMMENT); } + gzip(source, function(err, data) { + console.log('size : ./moment.js ' + source.length + ' b (' + data.length + ' b)'); + }); })(); \ No newline at end of file diff --git a/docs/index.html b/docs/index.html index 163ff729a..e104bf650 100644 --- a/docs/index.html +++ b/docs/index.html @@ -81,7 +81,7 @@

Github

- Development Version (1.0.0) 20k Source + Comments + Development Version (1.0.0) 16k Source + Comments

Production Version (1.0.0) 2.2k Minified + Gzipped.