Sha256: a90ed78e8c9c0fa64b4437962d191d01107e83423ba614e9c29a5ffa48778ee4

Contents?: true

Size: 226 Bytes

Versions: 1

Compression:

Stored size: 226 Bytes

Contents

if defined?(Rails)
  module Sprockets
    class CommonJSEngine < Rails::Engine
      initializer :setup_commonjs do |app|
        app.assets.register_postprocessor 'application/javascript', CommonJS
      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
sprockets-commonjs-0.0.4 lib/sprockets/engine.rb