mirror of
https://github.com/gtbu/Typesetter-5.3-p8.git
synced 2024-11-21 21:59:12 +01:00
faster compiling with $tmpcomp
This commit is contained in:
parent
1dce84e3dd
commit
cad72218d3
1 changed files with 5 additions and 4 deletions
|
@ -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];
|
||||
|
|
Loading…
Reference in a new issue