mirror of https://github.com/metafizzy/isotope
Filter & sort magical layouts
http://isotope.metafizzy.co
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
15 lines
394 B
15 lines
394 B
#!/bin/bash |
|
|
|
# minifies jquery.isotope.js |
|
# requires nodejs & uglifyjs |
|
|
|
JS=jquery.isotope.js |
|
JS_MIN=jquery.isotope.min.js |
|
|
|
# minify with UglifyJS |
|
# then, add newline characters after `*/`, but not last newline character |
|
uglifyjs $JS \ |
|
| awk '{ORS=""; gsub(/\*\//,"*/\n"); if (NR!=1) print "\n"; print;}' > $JS_MIN |
|
# add trailing semicolon |
|
echo ';' >> $JS_MIN |
|
echo "Minified" $JS "as" $JS_MIN
|
|
|