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 1c92a45 commit b3ee527Copy full SHA for b3ee527
lib/react/rails/railtie.rb
@@ -38,6 +38,11 @@ class Railtie < ::Rails::Railtie
38
39
app.config.assets.paths << root_path.join('lib/assets/react-source/').join(directory).to_s
40
app.config.assets.paths << root_path.join('lib/assets/javascripts/').to_s
41
+
42
+ app.assets.version = [
43
+ app.assets.version,
44
+ "react-#{directory}",
45
+ ].compact.join('-')
46
end
47
48
config.after_initialize do |app|
0 commit comments