]> source.dussan.org Git - vaadin-framework.git/commitdiff
Add support for partial imports (#11776)
authorArtur Signell <artur@vaadin.com>
Mon, 2 Sep 2013 20:57:30 +0000 (23:57 +0300)
committerVaadin Code Review <review@vaadin.com>
Thu, 26 Sep 2013 06:20:45 +0000 (06:20 +0000)
Change-Id: I5696e63b618294b4e6bbd3b0e407befddc5aa8a8

theme-compiler/src/com/vaadin/sass/internal/resolver/AbstractResolver.java

index f0464d098bb79ca774aa580c54d25288edc872b3..5de1f95264df153b36d659f733d6fafd74827f20 100644 (file)
@@ -65,6 +65,13 @@ public abstract class AbstractResolver implements ScssStylesheetResolver,
                 return source;
             }
 
+            // Try to find partial import (_identifier.scss)
+            source = normalizeAndResolve(path + "/_" + identifier);
+
+            if (source != null) {
+                return source;
+            }
+
         }
 
         return normalizeAndResolve(identifier);