class Sprockets::Exporters::ZopfliExporter

Generates a ‘.gz` file using the zopfli algorithm from the Zopfli gem.

Public Instance Methods

setup() click to toggle source
# File lib/sprockets/exporters/zopfli_exporter.rb, line 8
def setup
  @gzip_target = "#{ target }.gz"
  @gzip = Sprockets::Utils::Gzip.new(asset, archiver: Utils::Gzip::ZopfliArchiver)
end