cheppers/robo-sass

This package is abandoned and no longer maintained. The author suggests using the sweetchuck/robo-sass package instead.

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-11-06 20:43:19 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);
    }
}