Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CSS

css minifier api


#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
Source by www.toptal.com #
 
PREVIOUS NEXT
Tagged: #css #minifier #api
ADD COMMENT
Topic
Name
3+8 =