-
Notifications
You must be signed in to change notification settings - Fork 755
assets:precompile broken with initialize_on_precompile=-true #192
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Yeah, maybe you could do something like that! I put it there because, as I understand it, Rails takes all the configs, then runs the initializers. So, you have to let them set What if we just skipped the ceremony of |
@bborn I'm looking into this now and trying to reproduce. What Rails version are you using? I see in Rails 4.1, In the mean time, you could work around this by assigning |
I'm working in Rails 3. In the mean time, you could work around this by assigning
Yes, that worked fine.
|
Glad that worked for you! |
With
config.assets.initialize_on_precompile = false
,React::JSX.transform_options = app.config.react.jsx_transform_options
never gets set, and I get an exception fromjsx.rb#30
. Can we move theReact::JSX.transform_options = app.config.react.jsx_transform_options
inrailtie.rb
out of the initializer block?The text was updated successfully, but these errors were encountered: