2020-05-21 04:03:31 +05:30
|
|
|
// This sets up the URL prefix used in webpack's chunk loading.
|
|
|
|
// This file must be imported before any lazy-loading is being attempted.
|
2021-05-08 19:57:25 +05:30
|
|
|
const {AssetUrlPrefix} = window.config;
|
2019-11-18 03:09:06 +05:30
|
|
|
|
2021-05-08 19:57:25 +05:30
|
|
|
if (AssetUrlPrefix) {
|
|
|
|
__webpack_public_path__ = AssetUrlPrefix.endsWith('/') ? AssetUrlPrefix : `${AssetUrlPrefix}/`;
|
2020-05-21 04:03:31 +05:30
|
|
|
} else {
|
|
|
|
const url = new URL(document.currentScript.src);
|
|
|
|
__webpack_public_path__ = url.pathname.replace(/\/[^/]*?\/[^/]*?$/, '/');
|
|
|
|
}
|