 		.pipe gulp.dest('./')
 
 
-gulp.task "rev_replave", () ->
-	gulp.src([])
+#*------------------------------------*\
+#   $REV REPLACE
+# 	github.com/jamesknelson/gulp-rev-replace/issues/23
+#*------------------------------------*/
+gulp.task 'rev_replace', ["uglify", "minify", "font", "imagemin"], () ->
+	manifest = require "./#{conf.path.pvt.assets}/rev-manifest.json"
+	stream = gulp.src ["./#{conf.path.pub.css}/#{manifest['style.css']}"]
+
+	Object.keys(manifest).reduce((stream, key) ->
+		stream.pipe replace(key, manifest[key])
+	, stream)
+		.pipe gulp.dest("./#{conf.path.pub.css}")
 
 
 #*------------------------------------*\

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

cp 							= require 'child_process'
spawn 					= cp.spawn
rev 						= require 'gulp-rev'
replace					= require 'gulp-replace'

# Extra
extend 					= require "extend"
