📅  最后修改于: 2022-03-11 14:47:44.852000             🧑  作者: Mango
#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