Skip to content

reisraff/phulp-scss-compiler

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

phulp-scss-compiler

The scss-compiler addon for PHULP. It's a wrapper for leafo/scssphp.

Install

$ composer require reisraff/phulp-scss-compiler

Usage

<?php

use Phulp\ScssCompiler\ScssCompiler;

$phulp->task('scss', function ($phulp) {
    $phulp->src(['src/'], '/scss$/')
        // compile
        ->pipe(new ScssCompiler)
        // write your compiled files
        ->pipe($phulp->dest('dist/'));
});

Options

import_paths : The paths where can be located files to be imported. Should be an array

<?php

use Phulp\ScssCompiler\ScssCompiler;

$compiler = new ScssCompiler([
    // default: null
    'import_paths' => ['src/styles/']
]);