Skip to content

Latest commit

 

History

History
35 lines (23 loc) · 660 Bytes

README.md

File metadata and controls

35 lines (23 loc) · 660 Bytes

gulp-ng-template-cache

Put ng-templates from script to AngularJS $templateCache

Install

Install with npm

npm install gulp-ng-template-cache --save-dev

Example

gulpfile.js

var ngTemplateCache = require('gulp-ng-template-cache');

gulp.task('default', function () {
  return gulp.src('templates/**/*.html')
    .pipe(ngTemplateCache())
    .pipe(gulp.dest('public'));
});

API

options

moduleName - {string} [moduleName='templates']

Name of AngularJS module.

bundleName - {string} [bundleName='templatecache.js']

Name of js bundle with templates.