Sha256: b9324502c5b3f8bf4b5bb4556af91cf6571ab3c5b0a8754c3713e6ac33410db0
Contents?: true
Size: 422 Bytes
Versions: 1
Compression:
Stored size: 422 Bytes
Contents
require_relative './processor' module WebpackRails class Engine < ::Rails::Engine initializer :setup_webpack_rails, :after => "sprockets.environment", :group => :all do |app| # where [name].bundle.js files should be app.assets.append_path Rails.root.join('tmp/webpack/bundles') # process app.assets.register_preprocessor('application/javascript', WebpackRails::Processor) end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
webpack_rails-0.1.0 | lib/webpack_rails/engine.rb |