Sha256: 1369e03e09311d86d4486d8212ef74dbda29764df03d28d203ffe0f42c5bf5cf

Contents?: true

Size: 402 Bytes

Versions: 3

Compression:

Stored size: 402 Bytes

Contents

# encoding: utf-8

require 'sprockets/exporters/webp_exporter'

module Sprockets
  module WebP
    class Railtie < ::Rails::Railtie
      initializer :webp, group: :all do |app|
        app.config.assets.configure do |env|
          env.register_exporter 'image/jpeg', Exporters::WebpExporter
          env.register_exporter 'image/png', Exporters::WebpExporter
        end
      end
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
sprockets-webp-exporter-0.1.0.rc3 lib/sprockets/webp/railtie.rb
sprockets-webp-exporter-0.1.0.rc2 lib/sprockets/webp/railtie.rb
sprockets-webp-exporter-0.1.0.rc1 lib/sprockets/webp/railtie.rb