miickel / gulp-angular-templatecache

Concatenates and registers AngularJS templates in the $templateCache.
MIT License
524 stars 103 forks source link

Can't generate file with cached templates at all. #139

Closed vaske closed 6 years ago

vaske commented 7 years ago

Hi there,

I'm using Yeoman for my project generation and it use gulp-angular-templatecache this is how my partials tasks looks like

const gulp = require('gulp');
const htmlmin = require('gulp-htmlmin');
const angularTemplatecache = require('gulp-angular-templatecache');

const conf = require('../conf/gulp.conf');

gulp.task('partials', partials);

function partials() {
  return gulp.src(conf.path.src('src/**/*.html'))
    .pipe(htmlmin())
    .pipe(angularTemplatecache('templateCacheHtml.js', {
      module: conf.ngModule,
      root: 'views'
    }))
    .pipe(gulp.dest(conf.path.tmp()));
}

whole project is under src folder and all templates are located in views directory, did I miss something or what when I run this task it went ok but templateCacheHtml.js hasn't been generated at all.

tnx