📜  css minifier api - CSS 代码示例

📅  最后修改于: 2022-03-11 14:47:28.588000             🧑  作者: Mango

代码示例1
#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