online minifier api

104

#JS Minifier
for file in $(ls|grep '\.js'); do curl -X POST -s --data-urlencode "input@${file}" https://www.toptal.com/developers/javascript-minifier/raw > "${file}.min.js"; done

## CSS Minifier
# https://www.toptal.com/developers/cssminifier/api
for file in $(ls |grep '\.css'); do curl -X POST -s --data-urlencode "input@${file}" https://www.toptal.com/developers/cssminifier/raw > "${file}.min.css" ; done

Comments

Submit
0 Comments