Skip to content
Fetching contributors…
Cannot retrieve contributors at this time
executable file 15 lines (11 sloc) 262 Bytes
#!/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.