The less-compiler addon for PHULP. It's a wrapper for less.php.
$ composer require reisraff/phulp-less-compiler
<?php
use Phulp\LessCompiler\LessCompiler;
$phulp->task('less', function ($phulp) {
$phulp->src(['src/'], '/css$/')
// compile
->pipe(new LessCompiler)
// write your compiled files
->pipe($phulp->dest('dist/'));
});
URI : The uri root to prepend to any relative image or @import urls in the .less file.
<?php
use Phulp\LessCompiler\LessCompiler;
$compiler = new LessCompiler([
// default: null
'uri' => '../../'
]);