/** * Set import paths for compiler. * Paths will be used for @import Sass method. * Each path can be a filesystem paths. * Or an Yii path with application aliases (like "application"). * * @param array|string $paths Single import path or list of paths */ protected function setImportPaths($paths) { $paths = (array) $paths; $preparedPaths = array(); foreach ($paths as $originalPath) { $preparedPath = YiiBase::getPathOfAlias($originalPath); if ($preparedPath !== false) { $preparedPaths[] = $preparedPath; } else { $preparedPaths[] = $originalPath; } } $this->scssc->setImportPaths($preparedPaths); }