mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-03 16:51:40 +09:00
Update SCSS compiler integration code to work with newer version of scssphp (fixes #1962)
This commit is contained in:
parent
da5697a5be
commit
e93b44aa3a
1 changed files with 2 additions and 2 deletions
|
|
@ -238,10 +238,10 @@ class Formatter
|
|||
$scss_compiler->setImportPaths(array(dirname(is_array($source_filename) ? array_first($source_filename) : $source_filename)));
|
||||
if ($variables)
|
||||
{
|
||||
$scss_compiler->setVariables($variables);
|
||||
$scss_compiler->addVariables(array_map('\ScssPhp\ScssPhp\ValueConverter::parseValue', $variables));
|
||||
}
|
||||
|
||||
$content = $scss_compiler->compile($content) . "\n";
|
||||
$content = $scss_compiler->compileString($content)->getCss() . "\n";
|
||||
$content = strpos($content, '@charset') === false ? ('@charset "UTF-8";' . "\n" . $content) : $content;
|
||||
$result = true;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue