]> zoso.dev Git - buffer.git/commitdiff
add npm run size command
authorFeross Aboukhadijeh <feross@feross.org>
Tue, 8 Apr 2014 09:25:21 +0000 (02:25 -0700)
committerFeross Aboukhadijeh <feross@feross.org>
Tue, 8 Apr 2014 09:25:21 +0000 (02:25 -0700)
package.json

index 3b2ef6cdd5d5c0eb77245474cee7ab76396a4893..90b32a00997d04226784c372a079c3320e71fbc9 100644 (file)
@@ -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",