sweetchuck/robo-sass

Compile SCSS files with the 'sass' PHP extension.

0.1.2 2019-11-13 19:20 UTC

This package is auto-updated.

Last update: 2024-12-01 19:39:28 UTC


README

CircleCI codecov

Compile SASS/SCSS files with sass PHP extension

Example

<?php

use Sweetchuck\Robo\Sass\SassTaskLoader;
use Robo\Contract\TaskInterface;
use Robo\Tasks;
use Symfony\Component\Finder\Finder;

class RoboFile extends Tasks
{
    use SassTaskLoader;

    public function sassCompile(): TaskInterface
    {
        $files = (new Finder())
            ->in('./scss')
            ->name('/^[^_].*\.(sass|scss)$/')
            ->files();

        return $this
            ->taskSassCompile()
            ->setFiles($files);
    }
}