Sha256: 1fb4951d9784e45239b8adc847f72dd85c2198954aa7fc621612367a33b01211

Contents?: true

Size: 555 Bytes

Versions: 26

Compression:

Stored size: 555 Bytes

Contents

require 'hanami/assets/compressors/javascript'
require 'uglifier'

module Hanami
  module Assets
    module Compressors
      # Uglifier compressor for JavaScript
      #
      # It depends on <tt>uglifier</tt> gem
      #
      # @since 0.1.0
      # @api private
      #
      # @see http://lisperator.net/uglifyjs
      # @see https://rubygems.org/gems/uglifier
      class UglifierJavascript < Javascript
        # @since 0.1.0
        # @api private
        def initialize
          @compressor = Uglifier.new
        end
      end
    end
  end
end

Version data entries

26 entries across 26 versions & 1 rubygems

Version Path
hanami-assets-1.0.0.beta2 lib/hanami/assets/compressors/uglifier_javascript.rb
hanami-assets-1.0.0.beta1 lib/hanami/assets/compressors/uglifier_javascript.rb
hanami-assets-0.4.0 lib/hanami/assets/compressors/uglifier_javascript.rb
hanami-assets-0.3.0 lib/hanami/assets/compressors/uglifier_javascript.rb
hanami-assets-0.2.1 lib/hanami/assets/compressors/uglifier_javascript.rb
hanami-assets-0.2.0 lib/hanami/assets/compressors/uglifier_javascript.rb