Sha256: 92b627d265238ef572f3e9a7c0ebf26cfd3c968ebb4479008974047a4c32efd1
Contents?: true
Size: 598 Bytes
Versions: 4
Compression:
Stored size: 598 Bytes
Contents
# encoding: utf-8 module Nanoc::Filters # @api private class UglifyJS < Nanoc::Filter requires 'uglifier' # Runs the content through [UglifyJS](https://github.com/mishoo/UglifyJS2/). # This method optionally takes options to pass directly to Uglifier. # # @param [String] content The content to filter # # @option params [Array] :options ([]) A list of options to pass on to Uglifier # # @return [String] The filtered content def run(content, params = {}) # Add filename to load path Uglifier.new(params).compile(content) end end end
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
nanoc-4.0.0b2 | lib/nanoc/filters/uglify_js.rb |
nanoc-4.0.0b1 | lib/nanoc/filters/uglify_js.rb |
nanoc-4.0.0a2 | lib/nanoc/filters/uglify_js.rb |
nanoc-4.0.0a1 | lib/nanoc/filters/uglify_js.rb |