We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents b3fac2c + 649b1b6 commit 6a9f567Copy full SHA for 6a9f567
lib/react/server_rendering/webpacker_manifest_container.rb
@@ -42,6 +42,8 @@ def find_asset(logical_path)
42
asset_path = Webpacker.manifest.lookup(logical_path).to_s
43
if Webpacker.dev_server.running?
44
ds = Webpacker.dev_server
45
+ # Remove the protocol and host from the asset path. Sometimes webpacker includes this, sometimes it does not
46
+ asset_path.slice!("#{ds.protocol}://#{ds.host_with_port}")
47
dev_server_asset = open("#{ds.protocol}://#{ds.host_with_port}#{asset_path}").read
48
dev_server_asset.sub!(CLIENT_REQUIRE, '//\0')
49
dev_server_asset
0 commit comments