Class: Catapult::Compressor::JS

Inherits:
Object
  • Object
show all
Defined in:
lib/catapult/compressor.rb

Instance Method Summary collapse

Instance Method Details

#compress(source, options = {}) ⇒ Object



4
5
6
7
# File 'lib/catapult/compressor.rb', line 4

def compress(source, options = {})
  require 'uglifier'
  Uglifier.compile(source, options)
end