Skip to content

Latest commit

 

History

History
42 lines (28 loc) · 757 Bytes

README.md

File metadata and controls

42 lines (28 loc) · 757 Bytes

phulp-less-compiler

The less-compiler addon for PHULP. It's a wrapper for less.php.

Install

$ composer require reisraff/phulp-less-compiler

Usage

<?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/'));
});

Options

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' => '../../'
]);