diff --git a/ExtendedScssc.php b/ExtendedScssc.php index ded8b73..27af178 100644 --- a/ExtendedScssc.php +++ b/ExtendedScssc.php @@ -29,6 +29,7 @@ public function __construct() { $this->setEmbed(true); } +// parent::setIncludePath(YiiBase::getPathOfAlias('@webroot')); parent::setIncludePath($_SERVER['DOCUMENT_ROOT']); $this->setImporter([$this, 'import']); @@ -45,8 +46,6 @@ public function import($arg) { if (!in_array($arg, $this->parsedFiles)) { $this->parsedFiles[] = $arg; } - - return $this->parsedFiles; } diff --git a/SassHandler.php b/SassHandler.php index 8f475cc..dfc5472 100644 --- a/SassHandler.php +++ b/SassHandler.php @@ -353,7 +353,7 @@ public function getCompiledFile($sourcePath) public function compile($sourcePath) { if ($this->autoAddCurrentDirectoryAsImportPath) { $this->compiler->addImportPath(dirname($sourcePath)); - $this->compiler->addImportPath(YiiBase::getPathOfAlias('@webroot')); +// $this->compiler->addImportPath(YiiBase::getPathOfAlias('@webroot')); } $sourceCode = file_get_contents($sourcePath);