Open mperham opened 14 years ago
Was able to work around the problem at runtime:
# lib/smurf/javascript.rb line 47
def initialize(content)
@input = StringIO.new(content)
begin
@output = StringIO.new
jsmin
rescue RuntimeError => ex
puts "Unable to minify Javascript: #{ex.message}"
@output = StringIO.new(content)
end
end
This stinks for Smurf. Would you be willing to fix Smurf and submit a patch?
The problem is modernizr-1.5.min which has already be minified and apparently your pure-Ruby javascript minifier does not handle part of its syntax. You can find modernizr here:
http://www.modernizr.com/