Sha256: 6019287efd91e9512616e88cfcefc36f62127da09ca0b55cea867275880c3dd4

Contents?: true

Size: 604 Bytes

Versions: 26

Compression:

Stored size: 604 Bytes

Contents

require 'hanami/assets/compressors/javascript'
require 'closure-compiler'

module Hanami
  module Assets
    module Compressors
      # Google Closure Compiler for JavaScript
      #
      # Depends on <tt>closure-compiler</tt> gem
      #
      # @see https://developers.google.com/closure/compiler
      # @see https://rubygems.org/gems/closure-compiler
      #
      # @since 0.1.0
      # @api private
      class ClosureJavascript < Javascript
        # @since 0.1.0
        # @api private
        def initialize
          @compressor = Closure::Compiler.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/closure_javascript.rb
hanami-assets-1.0.0.beta1 lib/hanami/assets/compressors/closure_javascript.rb
hanami-assets-0.4.0 lib/hanami/assets/compressors/closure_javascript.rb
hanami-assets-0.3.0 lib/hanami/assets/compressors/closure_javascript.rb
hanami-assets-0.2.1 lib/hanami/assets/compressors/closure_javascript.rb
hanami-assets-0.2.0 lib/hanami/assets/compressors/closure_javascript.rb