From db9db05c29d205c7ed6385a34ebccb9d083502d3 Mon Sep 17 00:00:00 2001 From: meriadec Date: Sat, 28 Mar 2015 20:12:57 +0100 Subject: [PATCH] chore(inject): add var for exclude files from bower injection --- app/templates/gulpfile.js | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/app/templates/gulpfile.js b/app/templates/gulpfile.js index 5b772c6..9717381 100644 --- a/app/templates/gulpfile.js +++ b/app/templates/gulpfile.js @@ -32,6 +32,8 @@ var toInject = [ 'client/styles/css/app.css' ]; +var bowerInjectExclude = []; + var toDelete = []; /** @@ -68,7 +70,8 @@ gulp.task('inject', ['sass'], function () { return gulp.src('client/index.html') .pipe($.inject(gulp.src(bowerFiles(), { read: false }), { name: 'bower', - relative: 'true' + relative: 'true', + ignorePath: bowerInjectExclude })) .pipe($.inject(sources, { relative: true })) .pipe(gulp.dest('client')); @@ -87,7 +90,8 @@ gulp.task('watch', ['inject'], function () { gulp.src('client/index.html') .pipe($.inject(gulp.src(bowerFiles(), { read: false }), { name: 'bower', - relative: 'true' + relative: 'true', + ignorePath: bowerInjectExclude })) .pipe(gulp.dest('client')); });