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