reisraff/phulp-angular-template-cache

The angular-template-cache addon for phulp

1.0.0 2016-11-21 19:06 UTC

This package is auto-updated.

Last update: 2020-10-07 16:32:10 UTC


README

The angular-template-cache addon for PHULP.

It's like gulp-angular-templatecache with some modifications.

Install

$ composer require reisraff/phulp-angular-template-cache

Usage

<?php

use Phulp\AngularTemplateCache\AngularTemplateCache;

$phulp->task('angular-template-cache', function ($phulp) {
    $phulp->src(['src/'], '/html$/')
        ->pipe(new AngularTemplateCache('templateCacheHtml.js', ['module' => 'app', 'root' => 'app']))
});