Skip to content

Commit

Permalink
Revert "Fixes jashkenas#756 -- switch to uglifier (passes tests)"
Browse files Browse the repository at this point in the history
This reverts commit c8142f5.
  • Loading branch information
jashkenas committed Sep 20, 2012
1 parent c8142f5 commit 7943cd1
Show file tree
Hide file tree
Showing 3 changed files with 29 additions and 12 deletions.
4 changes: 2 additions & 2 deletions Rakefile
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
require 'rubygems'
require 'uglifier'
require 'closure-compiler'

HEADER = /((^\s*\/\/.*\n)+)/

desc "Use the Closure Compiler to compress Underscore.js"
task :build do
source = File.read('underscore.js')
header = source.match(HEADER)
min = Uglifier.compile(source)
min = Closure::Compiler.new.compress(source)
File.open('underscore-min.js', 'w') do |file|
file.write header[1].squeeze(' ') + min
end
Expand Down
2 changes: 1 addition & 1 deletion test/index.html
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<!DOCTYPE html>
<!doctype html>
<html>
<head>
<title>Underscore Test Suite</title>
Expand Down
Loading

0 comments on commit 7943cd1

Please sign in to comment.