aaronjensen/sprockets-media_query_combiner

View on GitHub
lib/sprockets/media_query_combiner/engine.rb

Summary

Maintainability
A
0 mins
Test Coverage
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|
          Sprockets.register_postprocessor 'text/css', Sprockets::MediaQueryCombiner::Processor
          Sprockets.register_bundle_processor 'text/css', Sprockets::MediaQueryCombiner::Processor
        end
      end
    end
  end
end