Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/reisraff/phulp-less-compiler
The less-compiler addon for phulp
https://github.com/reisraff/phulp-less-compiler
compiler-addon less less-compiler php phulp phulpplugin
Last synced: 3 months ago
JSON representation
The less-compiler addon for phulp
- Host: GitHub
- URL: https://github.com/reisraff/phulp-less-compiler
- Owner: reisraff
- License: mit
- Created: 2016-05-18T18:35:41.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2021-01-27T19:09:34.000Z (almost 4 years ago)
- Last Synced: 2024-04-20T14:35:44.648Z (9 months ago)
- Topics: compiler-addon, less, less-compiler, php, phulp, phulpplugin
- Language: PHP
- Homepage: https://github.com/reisraff/phulp
- Size: 19.5 KB
- Stars: 1
- Watchers: 3
- Forks: 1
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# phulp-less-compiler
The less-compiler addon for [PHULP](https://github.com/reisraff/phulp). It's a wrapper for [less.php](https://github.com/oyejorge/less.php).
## Install
```bash
$ composer require reisraff/phulp-less-compiler
```## Usage
```php
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
'../../'
]);```