We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e7aa77e commit d395f6fCopy full SHA for d395f6f
src/Compiler.php
@@ -3390,6 +3390,8 @@ public function findImport($url)
3390
$urls = [$url, preg_replace('/[^\/]+$/', '_\0', $url)];
3391
}
3392
3393
+ $hasExtension = preg_match('/[.]s?css$/', $url);
3394
+
3395
foreach ($this->importPaths as $dir) {
3396
if (is_string($dir)) {
3397
// check urls for normal import paths
@@ -3399,7 +3401,7 @@ public function findImport($url)
3399
3401
. $full;
3400
3402
3403
if ($this->fileExists($file = $full . '.scss') ||
- $this->fileExists($file = $full)
3404
+ ($hasExtension && $this->fileExists($file = $full))
3405
) {
3406
return $file;
3407
0 commit comments