Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

changed default options for Packr

git-svn-id: http://bundle-fu.googlecode.com/svn/trunk@63 1db77ec0-6337-0410-9320-454da9aca44f
  • Loading branch information...
commit c13f84bedb950a94e460119e2004c9a3eb49cc30 1 parent f99b8b9
timcharper authored
Showing with 10 additions and 3 deletions.
  1. +10 −3 lib/bundle_fu.rb
View
13 lib/bundle_fu.rb
@@ -24,12 +24,11 @@ def bundle_files(filenames=[])
end
def bundle_js_files(filenames=[], options={})
- output = ""
+ output =
bundle_files(filenames) { |filename, content|
if options[:compress]
if Object.const_defined?("Packr")
- # use Packr plugin (http://blog.jcoglan.com/packr/)
- Packr.new.pack(content, options[:packr_options] || {:shrink_vars => false, :base62 => true})
+ content
else
JSMinimizer.minimize_content(content)
end
@@ -37,6 +36,14 @@ def bundle_js_files(filenames=[], options={})
content
end
}
+
+ if Object.const_defined?("Packr")
+ # use Packr plugin (http://blog.jcoglan.com/packr/)
+ Packr.new.pack(output, options[:packr_options] || {:shrink_vars => false, :base62 => false})
+ else
+ output
+ end
+
end
def bundle_css_files(filenames=[], options = {})
Please sign in to comment.
Something went wrong with that request. Please try again.