gulp-ng-template-cache

1.0.5 • Public • Published

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.

Package Sidebar

Install

npm i gulp-ng-template-cache

Weekly Downloads

1

Version

1.0.5

License

MIT

Last publish

Collaborators

  • vostrik