The scss-compiler addon for PHULP. It's a wrapper for leafo/scssphp.
$ composer require reisraff/phulp-scss-compiler
<?php
use Phulp\ScssCompiler\ScssCompiler;
$phulp->task('scss', function ($phulp) {
$phulp->src(['src/'], '/scss$/')
// compile
->pipe(new ScssCompiler)
// write your compiled files
->pipe($phulp->dest('dist/'));
});
import_paths : The paths where can be located files to be imported. Should be an array
<?php
use Phulp\ScssCompiler\ScssCompiler;
$compiler = new ScssCompiler([
// default: null
'import_paths' => ['src/styles/']
]);