HEX
Server: Apache
System: Windows NT MAGNETO-ARM 10.0 build 22000 (Windows 10) AMD64
User: Michel (0)
PHP: 7.4.7
Disabled: NONE
Upload Files
File: C:/Ruby27-x64/lib/ruby/gems/2.7.0/gems/sprockets-4.2.0/lib/sprockets/exporters/zopfli_exporter.rb
require 'sprockets/exporters/zlib_exporter'

module Sprockets
  module Exporters
    # Generates a `.gz` file using the zopfli algorithm from the
    # Zopfli gem.
    class ZopfliExporter < ZlibExporter
      def setup
        @gzip_target = "#{ target }.gz"
        @gzip = Sprockets::Utils::Gzip.new(asset, archiver: Utils::Gzip::ZopfliArchiver)
      end
    end
  end
end