Leafo\ScssPhp\Compiler::setImportPaths PHP Method

setImportPaths() public method

Set import paths
public setImportPaths ( string | array $path )
$path string | array
    public function setImportPaths($path)
    {
        $this->importPaths = (array) $path;
    }

Usage Example

Beispiel #1
0
 public function compile(Filesystem $files, $source, $dest)
 {
     $scss = $files->get($source);
     $this->compiler->setImportPaths(array_merge([$this->getPath($source)], $this->importPaths));
     $css = $this->compiler->compile($scss);
     $files->put($dest, $css);
 }
All Usage Examples Of Leafo\ScssPhp\Compiler::setImportPaths
Compiler