PHP code example of cheppers / robo-sass
1. Go to this page and download the library: Download cheppers/robo-sass library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
cheppers / robo-sass example snippets
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);
}
}