 #     $MINIFY CSS
 #*------------------------------------*/
 gulp.task "minify:css", ["sass"], () ->
-  gulp.src(["#{conf.path.dev.css}/style.css"])
-    .pipe minifyCSS({keepSpecialComments: 0})
+  gulp.src(["#{path.dev.css}/style.css"])
+    .pipe cssnano()
     .pipe rename({suffix: '.min'})
-    .pipe gulp.dest(conf.path.dev.css)
+    .pipe gulp.dest(path.dev.css)
 
 
 

#*------------------------------------*\
#     $MINIFY JS
#*------------------------------------*/
gulp.task "minify:js", ["coffee"], () ->
  files = [
    "#{conf.path.dev.js}/built.js"
  ]

  gulp.src files
    .pipe uglifyJs()
    .pipe rename({suffix: '.min'})
    .pipe gulp.dest(conf.path.dev.js)


gulp.task "minify:js:vendors", () ->
  files = [
    # "./#{conf.path.dev.assets}/**/vendor/[path/to/your/vendor].js",
  ]

  gulp.src files
    .pipe uglifyJs()
    .pipe rename({suffix: '.min'})
    .pipe gulp.dest('./')






gulp         = require "gulp"
cssnano      = require "gulp-cssnano"
rename       = require "gulp-rename"
exec         = require "gulp-exec"

path = require('../gulpconfig').path



