Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Pulp-tool/pulp-less

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Pulp-Less

Initialize your .pulp/composer.json with

{
    "repositories": [
        {
            "type": "vcs",
            "url": "[email protected]:Pulp-tool/pulp-less.git"
        }
    ],
    "require": {
        "pulp-less": "*"
     }
}

Then install with composer install

Use Pulp-Less

Use the plugin with src and dest pipes

$p->task('less', function() use($p) { 
    $p->watch( ['foo/**/*.less'])->on('change', function($file) use ($p) { 
    $p->src(['foo/bootstrap.less'])
        ->pipe(new \Pulp\Less( ['compress'=>true]))
        ->pipe($p->dest('foo/compressed.css'));

    });
});

Then call with

php pulp.phar less

Any time a less file under foo/ changes the bootstrap.less file will kick off the less compile process.

About

Less plugin for pulp

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages