Made compatible with windows
This commit is contained in:
parent
bdf290adb2
commit
8cfc9d41c3
@ -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
|
||||
}))
|
||||
|
Loading…
x
Reference in New Issue
Block a user