From 6e0576729a4861dc7d18f573ad85902a4464ff7f Mon Sep 17 00:00:00 2001 From: Shane Osbourne Date: Thu, 26 Jun 2014 08:10:04 +0100 Subject: [PATCH] Removed reference to BrowserSync running instance --- gulpfile.js | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/gulpfile.js b/gulpfile.js index af386076..160ded9c 100644 --- a/gulpfile.js +++ b/gulpfile.js @@ -27,14 +27,13 @@ var runSequence = require('run-sequence'); var browserSync = require('browser-sync'); var pagespeed = require('psi'); var reload = browserSync.reload; -var bs; // reference to the running instance of browserSync // Lint JavaScript gulp.task('jshint', function () { return gulp.src('app/scripts/**/*.js') .pipe($.jshint()) .pipe($.jshint.reporter('jshint-stylish')) - .pipe($.if(!bs.active, $.jshint.reporter('fail'))) + .pipe($.if(!browserSync.active, $.jshint.reporter('fail'))) .pipe(reload({stream: true})); }); @@ -116,7 +115,7 @@ gulp.task('clean', del.bind(null, ['.tmp', 'dist'])); // Watch Files For Changes & Reload gulp.task('serve', function () { - bs = browserSync({ + browserSync({ notify: false, server: { baseDir: ['.tmp', 'app']