hexbridge / laravel-elixir-ng-templates

Simple extension to laravel elixir that concatenates and registers AngularJS templates in the $templateCache.
MIT License
1 stars 2 forks source link

laravel-elixir-ng-templates

Simple extension to laravel elixir that concatenates and registers AngularJS templates in the $templateCache.

Install

npm install --save laravel-elixir-ng-templates

Usage

Example Gulpfile:

var elixir = require("laravel-elixir");

require("laravel-elixir-ng-templates");

elixir(function(mix) {
  mix.ngTemplates();
});

Arguments

source:
output:
options:

Advanced example

elixir(function(mix) {
  mix.ngTemplates('some/other/dir/**/*.html', 'public/assets', {
    filename: 'angular-tpls.js',
    root: 'tpls/',
    module: 'tpls'
  });
});

TODO