From: Tim Düsterhus Date: Tue, 27 Jul 2021 12:44:15 +0000 (+0200) Subject: Generate preload manifest when testing style X-Git-Tag: 5.4.3~48 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=773a0f69b6561d0295fe907cc5bc42429e55fae7;p=GitHub%2FWoltLab%2FWCF.git Generate preload manifest when testing style --- diff --git a/wcfsetup/install/files/lib/system/style/StyleCompiler.class.php b/wcfsetup/install/files/lib/system/style/StyleCompiler.class.php index f4d849863d..6ccc5c7d10 100644 --- a/wcfsetup/install/files/lib/system/style/StyleCompiler.class.php +++ b/wcfsetup/install/files/lib/system/style/StyleCompiler.class.php @@ -192,7 +192,15 @@ final class StyleCompiler extends SingletonFactory $variables ); - $this->writeCss(FileUtil::addTrailingSlash($testFileDir) . 'style', $css); + $preloadManifest = $this->buildPreloadManifest( + $this->extractPreloadRequests($css) + ); + + $this->writeCss( + FileUtil::addTrailingSlash($testFileDir) . 'style', + $css, + $preloadManifest + ); } catch (\Exception $e) { return $e; }