Skip to content

Instantly share code, notes, and snippets.

@mandula
Created November 2, 2009 08:56
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mandula/224039 to your computer and use it in GitHub Desktop.
Save mandula/224039 to your computer and use it in GitHub Desktop.
merb_bundle_minification.rb
if Merb::Config[:bundle_assets]
Merb::Assets::JavascriptAssetBundler.add_callback do |filename|
yui = Yui.new filename , :suffix => nil, :stomp => true
yui.minify
end
Merb::Assets::StylesheetAssetBundler.add_callback do |filename|
yui = Yui.new filename , :suffix => nil, :stomp => true, :type => :css
yui.minify
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment