PHP code example of nsrosenqvist / phulp-changed
1. Go to this page and download the library: Download nsrosenqvist/phulp-changed 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/ */
nsrosenqvist / phulp-changed example snippets
use NSRosenqvist\Phulp\ChangedFilter;
$phulp->task('images', function ($phulp) {
$phulp->src(['assets/images/'], '/png$/')
->pipe(new ChangedFilter('dist/images/'))
->pipe($phulp->dest('dist/images/'));
});