nsrosenqvist/phulp-changed

The changed files filter addon for phulp

1.0.0 2018-09-03 18:25 UTC

This package is auto-updated.

Last update: 2024-12-05 18:54:58 UTC


README

It's a third-party project that lets you filter out files that haven't changed.

Installation

composer require nsrosenqvist/phulp-changed

Usage

You must pass the destination directory as the argument in the construct so that the source files can be compared with that directory.

<?php

use NSRosenqvist\Phulp\ChangedFilter;

$phulp->task('images', function ($phulp) {
    $phulp->src(['assets/images/'], '/png$/')
        ->pipe(new ChangedFilter('dist/images/'))
        ->pipe($phulp->dest('dist/images/'));
});

License

MIT