Sha256: c8fe9875c3f3608a0f128647b67fe517fccdb60a58de6b36b41609d317703ce2
Contents?: true
Size: 597 Bytes
Versions: 8
Compression:
Stored size: 597 Bytes
Contents
module Nanoc::Filters # @since 3.3.0 class YUICompressor < Nanoc::Filter requires 'yuicompressor' # Compress Javascript or CSS using [YUICompressor](http://rubydoc.info/gems/yuicompressor). # This method optionally takes options to pass directly to the # YUICompressor gem. # # @param [String] content JavaScript or CSS input # # @param [Hash] params Options passed to YUICompressor # # @return [String] Compressed but equivalent JavaScript or CSS def run(content, params = {}) ::YUICompressor.compress(content, params) end end end
Version data entries
8 entries across 8 versions & 1 rubygems