From b462308168e8b51baa85d45fd0500dafc430d662 Mon Sep 17 00:00:00 2001 From: divyakarippath Date: Mon, 5 Oct 2020 17:45:55 -0700 Subject: [PATCH] fix: map cdn assets (#1744) --- packages/subapp-web/lib/util.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/subapp-web/lib/util.js b/packages/subapp-web/lib/util.js index 273f979e5..ad3a8f707 100644 --- a/packages/subapp-web/lib/util.js +++ b/packages/subapp-web/lib/util.js @@ -142,7 +142,7 @@ const utils = { if (cdnAssets) { // lookup asset URL from CDN mapping for (const mapName in cdnAssets) { - if (mapName.endsWith(bundleFile)) { + if (Path.basename(mapName) === Path.basename(bundleFile)) { assetUrl = cdnAssets[mapName]; break; }