reisraff / phulp-scss-compiler

The scss compiler addon for phulp

Home Page:https://github.com/reisraff/phulp

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

About

The scss compiler addon for phulp

https://github.com/reisraff/phulp

License:MIT License


Languages

Language:PHP 100.0%