Permalink
Browse files

Merge pull request #11 from dommmel/master (again)

  • Loading branch information...
1 parent 0199db4 commit 49c2d724578b4eae1011236af7895ce3de3a16d1 @nightsailer committed Mar 8, 2013
Showing with 5 additions and 0 deletions.
  1. +5 −0 lib/padrino/sprockets.rb
View
@@ -64,6 +64,11 @@ def setup_environment(minify=false, extra_paths=[])
@environment.append_path 'assets/images'
if minify
+ if defined?(YUI)
+ @environment.css_compressor = YUI::CssCompressor.new
+ else
+ puts "Add yui-compressor to your Gemfile to enable css compression"
+ end
if defined?(JSMin)
@environment.register_postprocessor "application/javascript", ::Sprockets::JSMinifier
else

0 comments on commit 49c2d72

Please sign in to comment.