Skip to content
Snippets Groups Projects
Commit 8cfc9d41 authored by Kevin Jahns's avatar Kevin Jahns
Browse files

Made compatible with windows

parent bdf290ad
No related branches found
No related tags found
No related merge requests found
...@@ -65,7 +65,7 @@ gulp.task('dev:examples', ['watch:dist'], function () { ...@@ -65,7 +65,7 @@ gulp.task('dev:examples', ['watch:dist'], function () {
gulp.src(distfiles) gulp.src(distfiles)
.pipe($.watch(distfiles)) .pipe($.watch(distfiles))
.pipe($.rename(function (path) { .pipe($.rename(function (path) {
var dir = path.dirname.split('/')[0] var dir = path.dirname.split(/[\\\/]/)[0]
console.log(JSON.stringify(path)) console.log(JSON.stringify(path))
path.dirname = dir === '.' ? 'yjs' : dir path.dirname = dir === '.' ? 'yjs' : dir
})) }))
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment