reisraff / phulp-less-compiler
Compile your less files
Installs: 1 635
Dependents: 0
Suggesters: 0
Security: 0
Stars: 1
Watchers: 3
Forks: 1
Open Issues: 1
Requires
- oyejorge/less.php: v1.7.0.10
- reisraff/phulp: ~1.7
README
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' => '../../' ]);