Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Fetching contributors…

Cannot retrieve contributors at this time

executable file 15 lines (11 sloc) 0.262 kb
#!/bin/bash
# minifies jquery.masonry.js
# requires nodejs & uglifyjs
JS=jquery.masonry.js
JS_MIN=jquery.masonry.min.js
TMP=$JS_MIN.tmp
uglifyjs $JS > $TMP
echo ';' >> $TMP
sed 's/\*\//&§/g; y/§/\n/;' $TMP > $JS_MIN
rm $TMP
echo "Minified" $JS "as" $JS_MIN
Jump to Line
Something went wrong with that request. Please try again.