From 407bb9278f36d3de261ce82f8ff5bcab35b841f4 Mon Sep 17 00:00:00 2001 From: Sebastian McKenzie Date: Sun, 9 Nov 2014 16:41:45 +1100 Subject: [PATCH] uglify polyfill.js and use minified versions in npm release --- Makefile | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index 2f6161d299..d16892dd1d 100644 --- a/Makefile +++ b/Makefile @@ -43,6 +43,8 @@ build: node bin/cache-templates node $(BROWSERIFY_CMD) -e lib/6to5/polyfill.js >dist/polyfill.js + node $(UGLIFY_CMD) dist/polyfill.js >dist/polyfill.min.js + node $(BROWSERIFY_CMD) lib/6to5/browser.js -s to5 >dist/6to5.js node $(UGLIFY_CMD) dist/6to5.js >dist/6to5.min.js @@ -54,8 +56,8 @@ publish: make test make build - cp dist/6to5.js browser.js - cp dist/polyfill.js polyfill.js + cp dist/6to5.min.js browser.js + cp dist/polyfill.min.js polyfill.js node bin/6to5-runtime >runtime.js