   gulpBrowserify
       entries : ['./app/coffee/main.coffee']
     .pipe source 'main.js'
-    .pipe buffer()
+    .pipe gulpBuffer()
     .pipe pistachio()
-    .pipe stream()
-    # .pipe livereload()
+    .pipe gulpStream()
+    .pipe gulpif devMode, livereload()
     .pipe gulp.dest "#{BUILD_PATH}/js"
+
 
 gulp.task 'watch-coffee', -> watchLogger 'cyan', gulp.watch COFFEE_PATH, ['coffee']
 


gulp.task 'sprites@1x', ->

  spriteStream = gulp.src 'static/sprites@1x/**/*.png'
    .pipe spritesmith
      imgName   : 'sprite@1x.png'
      cssName   : 'sprite@1x.styl'

gulp       = require 'gulp'
gutil      = require 'gulp-util'
gulpif     = require 'gulp-if'
coffee     = require 'gulp-coffee'
rename     = require 'gulp-rename'
gulpBuffer = require 'gulp-buffer'
gulpStream = require 'gulp-stream'
stylus     = require 'gulp-stylus'
rimraf     = require 'gulp-rimraf'
concat     = require 'gulp-concat'
