Created
November 2, 2009 08:56
-
-
Save mandula/224039 to your computer and use it in GitHub Desktop.
merb_bundle_minification.rb
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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