Class: Nanoc::Toolbox::Filters::JsMinify

Inherits:
Filter
  • Object
show all
Defined in:
lib/nanoc/toolbox/filters/js_minify.rb

Overview

NANOC Filter for minifying the JS Files using the JSMin gem

See Also:

Author:

Instance Method Summary collapse

Instance Method Details

#run(content, args = {}) ⇒ Object


11
12
13
# File 'lib/nanoc/toolbox/filters/js_minify.rb', line 11

def run(content, args = {})
  JSMin.minify(content)
end