Permalink
Browse files

Add yui compression for css

  • Loading branch information...
1 parent c15b4a7 commit f343daba8c5a5f402bb8733f3c7776741dc9de2d @dommmel dommmel committed Dec 9, 2012
Showing with 5 additions and 0 deletions.
  1. +5 −0 lib/padrino/sprockets.rb
@@ -58,6 +58,11 @@ def initialize(app, options={})
@environment.append_path 'assets/stylesheets'
@environment.append_path 'assets/images'
if options[: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 f343dab

Please sign in to comment.