Skip to content

Commit

Permalink
Fix compatibility with scssphp 1.4 (see #2547)
Browse files Browse the repository at this point in the history
Description
-----------

| Q                | A
| -----------------| ---
| Fixed issues     | Fixes #2495

### ToDos

- [ ] Revert contao/conflicts@820074e once this got merged and released (4.9 and upstream).

Commits
-------

961abaa Set the file path to fix compatibility with scssphp 1.4
  • Loading branch information
ausi committed Dec 7, 2020
1 parent 244d845 commit 66231e7
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -416,7 +416,7 @@ protected function handleScssLess($content, $arrFile)
$objCompiler->setSourceMap(Compiler::SOURCE_MAP_INLINE);
}

return $this->fixPaths($objCompiler->compile($content), $arrFile);
return $this->fixPaths($objCompiler->compile($content, $this->strRootDir . '/' . $arrFile['name']), $arrFile);
}

$strPath = \dirname($arrFile['name']);
Expand Down

0 comments on commit 66231e7

Please sign in to comment.