faster compiling with $tmpcomp

This commit is contained in:
gtbu 2023-04-26 15:29:03 +02:00
parent 1dce84e3dd
commit cad72218d3

View file

@ -200,7 +200,8 @@ class Css{
}
$compiled = $compiler->compileString(implode("\n", $combined))->getCss();
$tmpcomp = $compiler->compileString(implode("\n", $combined));
$compiled = $tmpcomp->getCss();
}catch( \Exception $e){
if( \gp\tool::LoggedIn() ){
@ -209,9 +210,9 @@ class Css{
return false;
}
$includedFiles = $compiler->compileString(implode("\n", $combined))->getIncludedFiles();
$sourceMap = $compiler->compileString(implode("\n", $combined))->getSourceMap();
$includedFiles = $tmpcomp->getIncludedFiles();
$sourceMap = $tmpcomp->getSourceMap();
$scss_files = $includedFiles;
return [$compiled, $temp_sourcemap_name];