GitHub - reisraff/phulp-angular-template-cache: The angular-template-cache addon for PHULP.

Skip to content

Navigation Menu

Sign in

Appearance settings

phulp-angular-template-cache

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']))
});