Module: Tipsy::Compressors::Uglifier

Defined in:
lib/tipsy/compressors/javascript_compressor.rb

Instance Method Summary collapse

Instance Method Details

#compress(js) ⇒ Object



27
28
29
30
# File 'lib/tipsy/compressors/javascript_compressor.rb', line 27

def compress(js)
  return js unless Tipsy::Site.config.compile.compress_javascripts
  ::Uglifier.compile(js, :max_line_length => 500, :squeeze => true, :copyright => false)
end