mirror of
https://github.com/a2nt/cms-niceties.git
synced 2024-10-22 11:05:46 +02:00
[IMPR] Generate URL for non-defered requirements
This commit is contained in:
parent
affec6aaac
commit
30ee3083b8
@ -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));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user