nsrosenqvist/phulp-underscore-filter

The underscore filter addon for phulp

1.0.0 2018-09-03 18:24 UTC

This package is auto-updated.

Last update: 2024-10-05 18:33:20 UTC


README

It's a third-party project that lets you filter out files that are prefixed by an underscore which is a common practice to mark files that are included by other files.

Installation

composer require nsrosenqvist/phulp-underscore-filter

Usage

<?php

use NSRosenqvist\Phulp\UnderscoreFilter;
use NSRosenqvist\Phulp\Assetic;

$phulp->task('styles', function ($phulp) {
    $phulp->src(['assets/styles/'], '/scss$/')
        ->pipe(new UnderscoreFilter)
        ->pipe(new Assetic([
            new \Assetic\Filter\ScssphpFilter,
            new \Assetic\Filter\CssMinFilter,
        ], 'theme.css'))
        ->pipe($phulp->dest('dist/styles/'));
});

License

MIT