Permalink
Browse files

Optimizing the optimizer, by lifting vars

  • Loading branch information...
1 parent 9324255 commit 4526bb7e4bff960cfc66e9038164064ba250e3c8 @shalecraig shalecraig committed Oct 26, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 Rakefile
View
@@ -55,7 +55,7 @@ file 'dist/zepto.min.js' => 'dist/zepto.js' do |task|
rescue LoadError; fail "Uglifier not available: #{$!}"
else
File.open(task.name, 'w') do |min|
- min << Uglifier.new.compile(File.read(task.prerequisites.first))
+ min << Uglifier.new(:lift_vars => true).compile(File.read(task.prerequisites.first))
end
end
end

0 comments on commit 4526bb7

Please sign in to comment.