PHP code example of reisraff / phulp-scss-compiler
1. Go to this page and download the library: Download reisraff/phulp-scss-compiler 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/ */
reisraff / phulp-scss-compiler example snippets
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/'));
});
use Phulp\ScssCompiler\ScssCompiler;
$compiler = new ScssCompiler([
// default: null
'import_paths' => ['src/styles/']
]);