diff --git a/Classes/Compiler.php b/Classes/Compiler.php index bf1fb17..699130b 100644 --- a/Classes/Compiler.php +++ b/Classes/Compiler.php @@ -188,6 +188,10 @@ public static function calculateContentHash(string $scssFileName, array $vars = foreach ($imports as $import) { $hashImport = ''; + if (str_ends_with($import, '/') && is_dir($pathInfo['dirname'] . '/' . $import)) { + $import = $import . '_index'; + } + if (file_exists($pathInfo['dirname'] . '/' . $import . '.scss')) { $hashImport = self::calculateContentHash($pathInfo['dirname'] . '/' . $import . '.scss', $visitedFiles); } else {