From f72fcd66c48aa194de6bf99c21bdd8cdf7851870 Mon Sep 17 00:00:00 2001 From: 6br Date: Thu, 17 May 2018 20:16:56 +0900 Subject: [PATCH] fix the condition of webpacker major version --- lib/react/server_rendering/webpacker_manifest_container.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/react/server_rendering/webpacker_manifest_container.rb b/lib/react/server_rendering/webpacker_manifest_container.rb index 377aeeac0..d2531fcac 100644 --- a/lib/react/server_rendering/webpacker_manifest_container.rb +++ b/lib/react/server_rendering/webpacker_manifest_container.rb @@ -77,7 +77,7 @@ def config def file_path path manifest.lookup_path(path) end - elsif MAJOR == 3 + elsif MAJOR >= 3 def file_path path ::Rails.root.join('public', manifest.lookup(path)[1..-1]) end