Skip to content

Commit

Permalink
include directories @ calculateContentHash
Browse files Browse the repository at this point in the history
  • Loading branch information
xerc committed Feb 14, 2024
1 parent c4f7d91 commit d06a661
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions Classes/Compiler.php
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit d06a661

Please sign in to comment.