diff --git a/lib/Minify/ScssCssSource.php b/lib/Minify/ScssCssSource.php index cf40bc1..7da4a23 100644 --- a/lib/Minify/ScssCssSource.php +++ b/lib/Minify/ScssCssSource.php @@ -145,7 +145,13 @@ class Minify_ScssCssSource extends Minify_Source { { $start = microtime(true); $scss = new Compiler(); - $css = $scss->compile(file_get_contents($filename), $filename); + + // set import path directory the input filename resides + // otherwise @import statements will not find the files + // and will treat the @import line as css import + $scss->setImportPaths(dirname($filename)); + + $css = $scss->compile(file_get_contents($filename), $filename); $elapsed = round((microtime(true) - $start), 4); $v = Version::VERSION;