Skip to content
Find file
Fetching contributors…
Cannot retrieve contributors at this time
11 lines (8 sloc) 252 Bytes
require 'rubygems'
require 'closure-compiler'
desc "Use the Closure Compiler to compress emile.js"
task :default do
js = File.open('emile.js', 'r')
min = Closure::Compiler.new.compile(js)
File.open('emile.min.js', 'w') {|f| f.write(min) }
end
Something went wrong with that request. Please try again.