core-bundle/src/Resources/contao/library/Contao/Combiner.php
protected function handleScssLess($content, $arrFile)
	{
		if ($arrFile['extension'] == self::SCSS)
		{
			$objCompiler = new Compiler();

			$objCompiler->setImportPaths(array
			(
				$this->strRootDir . '/' . \dirname($arrFile['name']),
				$this->strRootDir . '/vendor/contao-components/compass/css'
			));

			$objCompiler->setFormatter((Config::get('debugMode') ? Expanded::class : Compressed::class));

			return $this->fixPaths($objCompiler->compile($content), $arrFile);
		}
		else
		{
			$strPath = \dirname($arrFile['name']);

			$arrOptions = array
			(
				'strictMath' => true,
				'compress' => !Config::get('debugMode'),
				'import_dirs' => array($this->strRootDir . '/' . $strPath => $strPath)
			);

			$objParser = new \Less_Parser();
			$objParser->SetOptions($arrOptions);
			$objParser->parse($content);

			return $this->fixPaths($objParser->getCss(), $arrFile);
		}
	}
protected function handleScssLess($content, $arrFile)
	{
		if ($arrFile['extension'] == self::SCSS)
		{
			$objCompiler = new Compiler();

			$objCompiler->setImportPaths(array
			(
				$this->strRootDir . '/' . \dirname($arrFile['name']),
				$this->strRootDir . '/vendor/contao-components/compass/css'
			));

			$objCompiler->setFormatter((Config::get('debugMode') ? Expanded::class : Compressed::class));

			return $this->fixPaths($objCompiler->compile($content), $arrFile);
		}
		else
		{
			$strPath = \dirname($arrFile['name']);

			$arrOptions = array
			(
				'strictMath' => true,
				'compress' => !Config::get('debugMode'),
				'import_dirs' => array($this->strRootDir . '/' . $strPath => $strPath)
			);

			$objParser = new \Less_Parser();
			$objParser->SetOptions($arrOptions);
			$objParser->parse($content);

			return $this->fixPaths($objParser->getCss(), $arrFile);
		}
	}
Handle SCSS/LESS files

@param string $content The file content
@param array  $arrFile The file array

@return string The modified file content