Skip to content

Commit

Permalink
fix es6 bug in gulpfile
Browse files Browse the repository at this point in the history
  • Loading branch information
Berkeley Martinez authored and Berkeley Martinez committed Jul 25, 2015
1 parent 0d628f5 commit 998ed7b
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions gulpfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ function errorHandler() {

gulp.task('inject', function() {
gulp.src('views/home.jade')
.pipe(plumber({ errorHandler }))
.pipe(plumber({ errorHandler: errorHandler }))
.pipe(inject(gulp.src(bower()), {
//ignorePath: '/public'
}))
Expand All @@ -90,7 +90,7 @@ gulp.task('inject', function() {

gulp.task('pack-client', function() {
return gulp.src(webpackConfig.entry)
.pipe(plumber({ errorHandler }))
.pipe(plumber({ errorHandler: errorHandler }))
.pipe(webpack(Object.assign(
{},
webpackConfig,
Expand All @@ -101,7 +101,7 @@ gulp.task('pack-client', function() {

gulp.task('pack-watch', function() {
return gulp.src(webpackConfig.entry)
.pipe(plumber({ errorHandler }))
.pipe(plumber({ errorHandler: errorHandler }))
.pipe(webpack(Object.assign(
{},
webpackConfig,
Expand All @@ -112,7 +112,7 @@ gulp.task('pack-watch', function() {

gulp.task('pack-node', function() {
return gulp.src(webpackConfigNode.entry)
.pipe(plumber({ errorHandler }))
.pipe(plumber({ errorHandler: errorHandler }))
.pipe(webpack(webpackConfigNode))
.pipe(gulp.dest(webpackConfigNode.output.path));
});
Expand Down Expand Up @@ -169,7 +169,7 @@ gulp.task('lint', function() {

gulp.task('less', function() {
return gulp.src('./public/css/*.less')
.pipe(plumber({ errorHandler }))
.pipe(plumber({ errorHandler: errorHandler }))
.pipe(less({
paths: [ path.join(__dirname, 'less', 'includes') ]
}))
Expand Down

0 comments on commit 998ed7b

Please sign in to comment.