We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3cbfddd commit 8b110afCopy full SHA for 8b110af
lib/react/rails/railtie.rb
@@ -5,7 +5,9 @@ module Rails
5
class Railtie < ::Rails::Railtie
6
config.react = ActiveSupport::OrderedOptions.new
7
8
- initializer "react_rails.setup_vendor", :after => "sprockets.environment" do |app|
+ # run after all initializers to allow sprockets to pick up react.js and
9
+ # jsxtransformer.js from end-user to override ours if needed
10
+ config.after_initialize do |app|
11
variant = app.config.react.variant
12
13
# Mimic behavior of ember-rails...
0 commit comments