Skip to content
This repository

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 14 lines (11 sloc) 0.262 kb
1 2 3 4 5 6 7 8 9 10 11 12 13 14
#!/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
Something went wrong with that request. Please try again.