Sha256: 2c5d392a56cc217f41386220c6835030392dcf81ce98dfb4935246bceaf3b997
Contents?: true
Size: 439 Bytes
Versions: 11
Compression:
Stored size: 439 Bytes
Contents
#!/bin/bash # minifies jquery.isotope.js # requires nodejs & uglifyjs IN=jquery.isotope.js OUT=jquery.isotope.min.js # remove any lines that begin with /*jshint or /*global # then, minify with Uglify JS # then, add newline characters after `*/`, but not last newline character awk '!/^\/\*[jshint|global]/' $IN \ | uglifyjs \ | awk '{ORS=""; gsub(/\*\//,"*/\n"); if (NR!=1) print "\n"; print;}' > $OUT echo "Minified" $IN "as" $OUT
Version data entries
11 entries across 11 versions & 1 rubygems