uglify polyfill.js and use minified versions in npm release
This commit is contained in:
6
Makefile
6
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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user