class Nanoc::Filters::Terser
@api private
Public Instance Methods
Source
# File lib/nanoc/filters/terser.rb, line 19 def run(content, params = {}) # Add filename to load path ::Terser.new(params).compile(content) end
Runs the content through [terser](github.com/ahorek/terser-ruby). This method optionally takes options to pass directly to Terser
.
@param [String] content The content to filter
@option params [Array] :options ([]) A list of options to pass on to Terser
@return [String] The filtered content