From e2422dbb79be61ac9746a72dc7f29484f69fbbe4 Mon Sep 17 00:00:00 2001 From: xzyfer Date: Sat, 26 Mar 2016 19:04:29 +1100 Subject: [PATCH] Fix import file resolution to match Ruby Sass This patch address two inconsistencies with how `@import` is resolved compared to Ruby Sass. - `.css` should not be `@import`able - `.sass` should take precedence over `.scss` files Fixes #1656 --- src/file.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/file.cpp b/src/file.cpp index 3a5b0249ad..aeb2836a88 100644 --- a/src/file.cpp +++ b/src/file.cpp @@ -305,7 +305,7 @@ namespace Sass { std::string filename = join_paths(root, file); // supported extensions const std::vector exts = { - ".scss", ".sass", ".css" + ".sass", ".scss" }; // split the filename std::string base(dir_name(file));