Class: Sprockets::Exporters::ZopfliExporter
- Inherits:
-
ZlibExporter
- Object
- Exporters::Base
- ZlibExporter
- Sprockets::Exporters::ZopfliExporter
- Defined in:
- lib/sprockets/exporters/zopfli_exporter.rb
Overview
Generates a .gz file using the zopfli algorithm from the
Zopfli gem.
Instance Method Summary collapse
Methods inherited from ZlibExporter
Instance Method Details
#setup ⇒ Object
8 9 10 11 |
# 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 |