Sha256: a753229163f226cddde46d5d6406ef1fb47accec85c00d5ee89a301a060c1dc4

Contents?: true

Size: 704 Bytes

Versions: 13

Compression:

Stored size: 704 Bytes

Contents

require 'sprockets'
require 'sprockets/commoner/json_processor'
require 'sprockets/commoner/processor'
require 'sprockets/commoner/bundle'

module Sprockets
  module Commoner
  end

  register_postprocessor 'application/javascript', ::Sprockets::Commoner::Processor
  register_transformer 'application/json', 'application/javascript', ::Sprockets::Commoner::JSONProcessor
  register_bundle_metadata_reducer 'application/javascript', :commoner_enabled, false, :|
  register_bundle_metadata_reducer 'application/javascript', :commoner_used_helpers, Set.new, :+
  register_bundle_processor 'application/javascript', ::Sprockets::Commoner::Bundle
end

require 'sprockets/commoner/railtie' if defined?(Rails)

Version data entries

13 entries across 13 versions & 1 rubygems

Version Path
sprockets-commoner-0.5.1 lib/sprockets/commoner.rb
sprockets-commoner-0.5.0 lib/sprockets/commoner.rb
sprockets-commoner-0.4.0 lib/sprockets/commoner.rb
sprockets-commoner-0.3.0 lib/sprockets/commoner.rb
sprockets-commoner-0.2.8 lib/sprockets/commoner.rb
sprockets-commoner-0.2.7 lib/sprockets/commoner.rb
sprockets-commoner-0.2.6 lib/sprockets/commoner.rb
sprockets-commoner-0.2.5 lib/sprockets/commoner.rb
sprockets-commoner-0.2.4 lib/sprockets/commoner.rb
sprockets-commoner-0.2.3 lib/sprockets/commoner.rb
sprockets-commoner-0.2.2 lib/sprockets/commoner.rb
sprockets-commoner-0.2.1 lib/sprockets/commoner.rb
sprockets-commoner-0.2.0 lib/sprockets/commoner.rb