[IMPR] Generate URL for non-defered requirements

This commit is contained in:
Tony Air 2023-04-07 02:21:32 +02:00
parent affec6aaac
commit 30ee3083b8

View File

@ -156,7 +156,7 @@ class DeferredRequirements implements TemplateGlobalProvider
if ($external) { if ($external) {
self::$css[] = $css; self::$css[] = $css;
} else { } else {
WebpackTemplateProvider::loadCSS($css); WebpackTemplateProvider::loadCSS(self::get_url($css));
} }
} }
@ -168,7 +168,7 @@ class DeferredRequirements implements TemplateGlobalProvider
if (self::getDeferred() && !self::webpackActive()) { if (self::getDeferred() && !self::webpackActive()) {
self::$js[] = $js; self::$js[] = $js;
} else { } else {
WebpackTemplateProvider::loadJS($js); WebpackTemplateProvider::loadJS(self::get_url($js));
} }
} }