 gutil      = require "gulp-util"
 watch      = require "gulp-watch"
 
-browserSync  = require "browser-sync"
+bs           = require("browser-sync").create()
 cp           = require "child_process"
 del          = require "del"
 extend       = require "extend"
 moment       = require "moment"
 pngquant     = require "imagemin-pngquant"
-reload       = browserSync.reload
 rsync        = require("rsyncwrapper").rsync
 spawn        = cp.spawn
 

    .pipe cache(coffee({bare: true}).on('error', gutil.log))
    .pipe remember()
    .pipe gulp.dest(conf.path.dev.js)
    .pipe reload({stream: true})




# $BROWSER-SYNC
#*-------------------------------------*/
gulp.task 'browser-sync', () ->
  bs.init {
    proxy: scrt.bsProxy
    injectchanges: true
    open: false
