Skip to content

Commit

Permalink
minify.sh : no extra semicolon with uglifyjs 1.2.6
Browse files Browse the repository at this point in the history
  • Loading branch information
desandro committed Apr 11, 2012
1 parent 5a35b98 commit e7772c9
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions minify.sh
Expand Up @@ -12,6 +12,4 @@ OUT=jquery.isotope.min.js
awk '!/^\/\*[jshint|global]/' $IN \ awk '!/^\/\*[jshint|global]/' $IN \
| uglifyjs \ | uglifyjs \
| awk '{ORS=""; gsub(/\*\//,"*/\n"); if (NR!=1) print "\n"; print;}' > $OUT | awk '{ORS=""; gsub(/\*\//,"*/\n"); if (NR!=1) print "\n"; print;}' > $OUT
# add trailing semicolon
echo ';' >> $OUT
echo "Minified" $IN "as" $OUT echo "Minified" $IN "as" $OUT

0 comments on commit e7772c9

Please sign in to comment.