Sha256: f816e92285c704f27668281b7a5d4e69f94c0c863c99b37f510ec9ac314144d1
Contents?: true
Size: 581 Bytes
Versions: 5
Compression:
Stored size: 581 Bytes
Contents
# encoding: utf-8 module Nanoc::Filters 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
5 entries across 5 versions & 1 rubygems