miickel / gulp-angular-templatecache

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

No HTML files #100

Closed mjaworski-eab closed 9 years ago

mjaworski-eab commented 9 years ago

If a use gulp.src('src/*/.html')... with this tool and there are no html files, the tool breaks. Could you upgrade to gracefully handle the case when no files are passed to the tool.

Thanks!

remento commented 9 years ago

The issue is with using gulp-header 1.5, see https://github.com/tracker1/gulp-header/issues/21

You can get gulp-angular-templatecache to use an older version by:

npm cache clean
npm uninstall gulp-angular-templatecache
npm install gulp-header@1.2.2 --save-dev
npm install gulp-angular-templatecache --save-dev

To see what version of gulp header you are using…

npm list gulp-header

Note that the version of gulp-header to avoid is version 1.5

tracker1 commented 9 years ago

This should be fixed in gulp-header 1.5.2

miickel commented 9 years ago

duplicate of #97