Skip to content

Commit

Permalink
chore(inject): add var for exclude files from bower injection
Browse files Browse the repository at this point in the history
  • Loading branch information
meriadec committed Mar 28, 2015
1 parent f69d0ae commit db9db05
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions app/templates/gulpfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,8 @@ var toInject = [
'client/styles/css/app.css'
];

var bowerInjectExclude = [];

var toDelete = [];

/**
Expand Down Expand Up @@ -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'));
Expand All @@ -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'));
});
Expand Down

0 comments on commit db9db05

Please sign in to comment.