 #*------------------------------------*\
 #    $UGLIFY
 #*------------------------------------*/
-gulp.task "uglify", () ->
-  gulp.src [conf.path.pvt.js + "/main.js"]
+gulp.task "uglify", ["coffee"], () ->
+  gulp.src ["#{conf.path.pvt.js}/main.js"]
   .pipe uglifyJs()
   .pipe rev()
   .pipe rename({suffix: '.min'})

#*------------------------------------*\
#    $WATCH
#*------------------------------------*/
gulp.task "watch", ["browser-sync"], () ->
  gulp.watch conf.path.pvt.scss + "/**/*.scss", ["sass"]
  gulp.watch conf.path.pvt.coffee + "/**/*.coffee", ["coffee", reload]
  # gulp.watch conf.path.pvt.fnt + "/**/*", ['font']
  # gulp.watch conf.path.pvt.img + "/**/*", ['imagemin']




#    $SASS
#*------------------------------------*/
gulp.task "sass", () ->
  gulp.src(["#{conf.path.pvt.scss}/style.scss"])
    .pipe plumber(conf.plumber)
    .pipe sass({errLogToConsole: true})
    .pipe gulp.dest(conf.path.pvt.css)
