 			p = unixifyPath(path.join('/', path.relative(file.cwd, file.path)))
 
 			return if ext is '.js'
-				scripts.push p
+				js.push p
 
 			return if ext is '.css'
-				styles.push p
+				css.push p
 
 		endStream = ->
-			@emit 'data', {scripts, styles}
-			@emit 'end', {scripts, styles}
+			payload = {scripts: js, styles: css}
+			@emit 'data', payload
+			@emit 'end', payload
 
 		es.through bufferContents, endStream
 

			p.replace regex, '/'

	includify = ->
		scripts = []
		styles = []

		bufferContents = (file) ->
			return if file.isNull()

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

gulp.task 'dist', ['build'], ->
	connect.reload()