Browse Source

minify.sh : no extra semicolon with uglifyjs 1.2.6

pull/235/head
David DeSandro 13 years ago
parent
commit
e7772c9185
  1. 2
      minify.sh

2
minify.sh

@ -12,6 +12,4 @@ OUT=jquery.isotope.min.js
awk '!/^\/\*[jshint|global]/' $IN \
| uglifyjs \
| awk '{ORS=""; gsub(/\*\//,"*/\n"); if (NR!=1) print "\n"; print;}' > $OUT
# add trailing semicolon
echo ';' >> $OUT
echo "Minified" $IN "as" $OUT

Loading…
Cancel
Save