miickel / gulp-angular-templatecache

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

create template file error #126

Closed Alexgalinier closed 8 years ago

Alexgalinier commented 8 years ago

Hi guys,

I have a simple use of this tool

return gulp.src(config.src)
      .pipe(templateCache(config.options))
      .pipe(gulp.dest(config.dst));

With this config

src: path.join(config.paths.app, '**', '*.html'),
  dst: path.join(config.paths.app),
  options: {
    module: 'app.templates',
    standalone: true,
    filename: 'generated.templates.js',
    templateHeader: 'var angular = require("angular"); angular.module("<%= module %>"<%= standalone %>).run(["$templateCache", function($templateCache) {',
    templateFooter: '}]); module.exports = "app.templates";'
  }

After a recent upgrade of the package (to the latest release)

"gulp-angular-templatecache": "1.8.x",

The task fails to create the 'generated.templates.js'. Any idea ? Because it was working fine one week ago with the same config and code. Just for information: If the file exists, the content is well replaced so it's just the file creation.

Regards

Alexgalinier commented 8 years ago

Ok i saw https://github.com/miickel/gulp-angular-templatecache/issues/124 which solves this so you are already aware of it!

This issue is closed so.