From df5ba6f66181754fbc032e8bec725262331c278f Mon Sep 17 00:00:00 2001 From: Feross Aboukhadijeh Date: Tue, 8 Apr 2014 02:25:21 -0700 Subject: [PATCH] add npm run size command --- package.json | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/package.json b/package.json index 3b2ef6c..90b32a0 100644 --- a/package.json +++ b/package.json @@ -42,7 +42,8 @@ "scripts": { "test": "tape test/*.js", "prepublish": "./bundle.sh", - "perf": "cd perf/solo && browserify --debug readUInt32BE.js > bundle.js && open index.html" + "perf": "cd perf/solo && browserify --debug readUInt32BE.js > bundle.js && open index.html", + "size": "browserify -r ./ | uglifyjs -c -m | gzip | wc -c" }, "testling": { "files": "test/*.js", -- 2.34.1