Method: Uglifier#compile_with_map

Defined in:
lib/uglifier.rb

#compile_with_map(source) ⇒ Array(String, String)

Minifies JavaScript code and generates a source map

Parameters:

  • source (IO, String)

    valid JS source code.

Returns:

  • (Array(String, String))

    minified code and source map.



175
176
177
# File 'lib/uglifier.rb', line 175

def compile_with_map(source)
  run_uglifyjs(source, true)
end