N°3685 Compile SCSS files as a compressed CSS file and fix SCSS copyright comment so that they don't end up in compiled CSS

This commit is contained in:
Stephen Abello
2021-09-14 11:16:11 +02:00
committed by Molkobain
parent 120670240c
commit 86ebb93149
141 changed files with 383 additions and 852 deletions

View File

@@ -1916,7 +1916,7 @@ class utils
public static function CompileCSSFromSASS($sSassContent, $aImportPaths = array(), $aVariables = array())
{
$oSass = new Compiler();
$oSass->setFormatter('ScssPhp\\ScssPhp\\Formatter\\Expanded');
$oSass->setFormatter('ScssPhp\\ScssPhp\\Formatter\\Compressed');
// Setting our variables
$oSass->setVariables($aVariables);
// Setting our imports paths