Sha256: 1c8cd1e897f71a90dce09f1dbc1b57d15ef2ca5c92c05a6d1de7d9e3b475eb9c
Contents?: true
Size: 326 Bytes
Versions: 2
Compression:
Stored size: 326 Bytes
Contents
require 'sprockets/cjs' if defined?(Rails) module Sprockets class CJS class Engine < ::Rails::Engine initializer :setup_commonjs, :after => "sprockets.environment", :group => :all do |app| app.assets.register_postprocessor 'application/javascript', CJS end end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
sprockets-cjs-0.2.1 | lib/sprockets/cjs/engine.rb |
sprockets-cjs-0.1.0 | lib/sprockets/cjs/engine.rb |