Skip to content

reisraff/phulp-less-compiler

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

21 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

Packages

No packages published

Contributors 2

  •  
  •  

Languages