From 37fb098ed0f7ff9e0918d7b4ba482fdb4fa9285f Mon Sep 17 00:00:00 2001 From: Tim Wood Date: Mon, 17 Oct 2011 13:37:08 -0700 Subject: [PATCH] Adding filesize of unminified source to build script --- build.js | 3 +++ docs/index.html | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) 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. -- 2.47.3