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 67e8ffa commit 1dbddafCopy full SHA for 1dbddaf
lib/react/rails/railtie.rb
@@ -41,6 +41,14 @@ class Railtie < ::Rails::Railtie
41
end
42
43
config.after_initialize do |app|
44
+ variant = app.config.react.variant == :production ? 'production' : 'development'
45
+ variant += '-with-addons' if app.config.react.addons
46
+
47
+ app.assets.version = [
48
+ app.assets.version,
49
+ "react-#{variant}",
50
+ ].compact.join('-')
51
52
# Server Rendering
53
# Concat component_filenames together for server rendering
54
app.config.react.components_js = lambda {
0 commit comments