 			p.replace regex, '/'
 
 	includify = ->
-		scripts = []
-		styles = []
+		js = []
+		css = []
 
 		bufferContents = (file) ->
 			return if file.isNull()

		.watch "#{srcDirectory}**", ['dist']

gulp.task 'dist', ['build'], ->
	gulp
		.src "#{distDirectory}**"
		.pipe connect.reload()
			p = unixifyPath(path.join('/', path.relative(file.cwd, file.path)))

			return if ext is '.js'
				js.push p

			return if ext is '.css'
				css.push p

		endStream = ->
			payload = {scripts: js, styles: css}
			@emit 'data', payload
			@emit 'end', payload

		es.through bufferContents, endStream

