php - scssphp compiler not importing sub Scss files -
i using scssphp compiler in joomla component.
here code:
use leafo\scssphp\compiler; $scss = new compiler(); $path = "template.scss"; $scss->addimportpath(function($path) { return juri::root().'/templates/protostar/scss/' . $path; }); $compiledcss = $scss->compile('@import "template.scss";');
and here template.scss file:
.noresize {font-size: 1rem !important;} /* less compilations */ @import "temp";
i have _temp.scss file in same folder template.scss.
when remove @import "temp";
template.scss gets compiled properly.
when have import statement, memory error - (line number varies)
fatal error: allowed memory size of 134217728 bytes exhausted (tried allocate 53248 bytes) in c:\xampp\htdocs\administrator\components\com_star\scss\src\compiler.php on line 3369
fatal error: allowed memory size of 134217728 bytes exhausted (tried allocate 3145736 bytes) in c:\xampp\htdocs\administrator\components\com_star\scss\src\compiler.php on line 644
fatal error: allowed memory size of 134217728 bytes exhausted (tried allocate 20480 bytes) in c:\xampp\htdocs\libraries\vendor\joomla\registry\src\registry.php on line 85
note: memory leak not issue here - have increased 1gb , execution time 60 secs. issue why take more 60 secs import 1 scss file 1 line in it
Comments
Post a Comment