elixir-angular-template-cache

Laravel Elixir 3 task extension for angular-templatecache

Usage no npm install needed!

<script type="module">
  import elixirAngularTemplateCache from 'https://cdn.skypack.dev/elixir-angular-template-cache';
</script>

README

elixir-angular-template-cache

Original project by Logan Henson, see https://github.com/loganhenson/laravel-elixir-angular-templatecache

Installation


$ npm install elixir-angular-template-cache

Usage


Require the extension and call it using mix.angulartemplatecache().

var elixir = require('laravel-elixir');
require('elixir-angular-template-cache');

elixir(function(mix)
{
    mix.angulartemplatecache(
        {module: 'app', root: 'templates'}, 	//	template cache options
        'public/app/views/cached/**', 			//	source 
        'public/app/js', 						//	destination
        'templates'								//	wrap
    );	
});

Run gulp.

$ gulp