test inlining

This commit is contained in:
Bruno Rybársky 2024-02-04 11:08:12 +01:00
parent 3f410c5002
commit 03a2852f97

@ -30,6 +30,7 @@ function inlineScriptFromSrc($inputString) {
$outputString = preg_replace_callback($pattern, function($match) { $outputString = preg_replace_callback($pattern, function($match) {
$src = $match[1]; $src = $match[1];
echo $_SERVER['DOCUMENT_ROOT'] . '/' . $src;
$jsContent = file_get_contents($_SERVER['DOCUMENT_ROOT'] . '/' . $src); $jsContent = file_get_contents($_SERVER['DOCUMENT_ROOT'] . '/' . $src);
// Minify the JavaScript content // Minify the JavaScript content