From: Feross Aboukhadijeh Date: Tue, 8 Apr 2014 09:25:21 +0000 (-0700) Subject: add npm run size command X-Git-Url: https://zoso.dev/?a=commitdiff_plain;h=df5ba6f66181754fbc032e8bec725262331c278f;p=buffer.git add npm run size command --- 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",