From 47b798e85ec2bf279cf6446ca9df18bd820bfe3d Mon Sep 17 00:00:00 2001 From: Snuggs Date: Tue, 22 Aug 2017 12:00:12 -0400 Subject: [PATCH] :bug: Fix #78 Issue When Transpiling / Minifying --- bin/shrink | 20 +++++++++++--------- 1 file changed, 11 insertions(+), 9 deletions(-) diff --git a/bin/shrink b/bin/shrink index 34f5e81830..d99b2e0ba3 100755 --- a/bin/shrink +++ b/bin/shrink @@ -1,9 +1,11 @@ -./node_modules/.bin/uglifyjs \ - ./dist/snuggsi.es \ - -c -m \ - -o ./dist/snuggsi.min.es \ -\ -&& ./node_modules/.bin/uglifyjs \ - ./dist/snuggsi.js \ - -c -m \ - -o ./dist/snuggsi.min.js +./node_modules/.bin/uglifyjs \ + --compress \ + --mangle safari10=true \ + --output ./dist/snuggsi.min.es \ + -- ./dist/snuggsi.es \ +&& \ +./node_modules/.bin/uglifyjs \ + --compress \ + --mangle safari10=true \ + --output ./dist/snuggsi.min.js \ + -- ./dist/snuggsi.js