Sha256: 5b70ed12c7dcb206b6190137d2cf17b1e0ef021582a5470f3687859681f6ff95

Contents?: true

Size: 494 Bytes

Versions: 4

Compression:

Stored size: 494 Bytes

Contents

require 'sprockets/media_query_combiner/processor'

if defined?(Rails)
  module Sprockets
    module MediaQueryCombiner
      class Engine < Rails::Engine
        initializer :setup_media_query_combiner, after: 'sprockets.environment', group: :all do |app|
          app.assets.register_postprocessor 'text/css', Sprockets::MediaQueryCombiner::Processor
          app.assets.register_bundle_processor 'text/css', Sprockets::MediaQueryCombiner::Processor
        end
      end
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
sprockets-media_query_combiner-0.0.5 lib/sprockets/media_query_combiner/engine.rb
sprockets-media_query_combiner-0.0.4 lib/sprockets/media_query_combiner/engine.rb
sprockets-media_query_combiner-0.0.3 lib/sprockets/media_query_combiner/engine.rb
sprockets-media_query_combiner-0.0.2 lib/sprockets/media_query_combiner/engine.rb