Written and hosted by Andrew Chilton (@andychilton) since 2009.
No ads in .
Thanks to Jeremy Cron for contributing this example.
require "rest_client" task :minify do css_file = "public/stylesheets/main.css" css_min_file = "public/stylesheets/min/main.min.css" response = RestClient.post "http://localhost:80/raw", {:input => File.open(css_file).read} File.open(css_min_file, "w").write(response) end
Many people have sent language examples over the years, but we want more! We'd love to add more examples in your favourite programming language, so please send them our way. Email andychilton at that gmail place in the sky, tweet me @andychilton, or open an issue or PR on webdev-sh/cssminfier.com.
Click on the language of your choice to see an example: