reisraff/phulp-scss-compiler

Compile your scss files

1.1.1 2018-03-15 15:43 UTC

This package is auto-updated.

Last update: 2020-10-07 16:35:29 UTC


README

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