forked from Adleraci/adlerka.top
test inlining
This commit is contained in:
parent
03a2852f97
commit
9fa5e55093
@ -6,6 +6,7 @@ function inlineLocalStylesFromHref($inputString) {
|
||||
$outputString = preg_replace_callback($pattern, function($match) {
|
||||
$href = $match[1];
|
||||
$cssFilePath = $_SERVER['DOCUMENT_ROOT'] . '/' . $href;
|
||||
echo $cssFilePath;
|
||||
$cssContent = file_get_contents($cssFilePath);
|
||||
$cssDir = dirname($cssFilePath);
|
||||
|
||||
@ -30,7 +31,6 @@ function inlineScriptFromSrc($inputString) {
|
||||
|
||||
$outputString = preg_replace_callback($pattern, function($match) {
|
||||
$src = $match[1];
|
||||
echo $_SERVER['DOCUMENT_ROOT'] . '/' . $src;
|
||||
$jsContent = file_get_contents($_SERVER['DOCUMENT_ROOT'] . '/' . $src);
|
||||
|
||||
// Minify the JavaScript content
|
||||
|
Loading…
Reference in New Issue
Block a user