miickel / gulp-angular-templatecache

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

Ignore files #132

Closed rafaelcneves closed 8 years ago

rafaelcneves commented 8 years ago

Is there a way to ignore some files?

I have a code similar to this:

var templateCache = require('gulp-angular-templatecache');

gulp.task('default', function () {
  return gulp.src('templates/**/*.html')
    .pipe(templateCache())
    .pipe(gulp.dest('public'));
});
miickel commented 8 years ago

You can exclude files with gulp using the !-character...

gulp.src(['js/**/*.js', '!js/**/*.min.js'])