Made compatible with windows

This commit is contained in:
Kevin Jahns 2016-01-09 04:17:23 +01:00
parent bdf290adb2
commit 8cfc9d41c3

View File

@ -65,7 +65,7 @@ gulp.task('dev:examples', ['watch:dist'], function () {
gulp.src(distfiles)
.pipe($.watch(distfiles))
.pipe($.rename(function (path) {
var dir = path.dirname.split('/')[0]
var dir = path.dirname.split(/[\\\/]/)[0]
console.log(JSON.stringify(path))
path.dirname = dir === '.' ? 'yjs' : dir
}))