Skip to content

Commit

Permalink
Sass compiler update
Browse files Browse the repository at this point in the history
  • Loading branch information
RdeWilde committed Dec 6, 2019
1 parent d71646f commit 6cfa6e2
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
3 changes: 1 addition & 2 deletions ExtendedScssc.php
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ public function __construct() {
$this->setEmbed(true);
}

// parent::setIncludePath(YiiBase::getPathOfAlias('@webroot'));
parent::setIncludePath($_SERVER['DOCUMENT_ROOT']);

$this->setImporter([$this, 'import']);
Expand All @@ -45,8 +46,6 @@ public function import($arg) {
if (!in_array($arg, $this->parsedFiles)) {
$this->parsedFiles[] = $arg;
}

return $this->parsedFiles;
}


Expand Down
2 changes: 1 addition & 1 deletion SassHandler.php
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 6cfa6e2

Please sign in to comment.