From 8cfc9d41c3b3b9ca3d3d4594191cdcf9ba75d139 Mon Sep 17 00:00:00 2001 From: Kevin Jahns Date: Sat, 9 Jan 2016 04:17:23 +0100 Subject: [PATCH] Made compatible with windows --- gulpfile.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gulpfile.js b/gulpfile.js index 7ea185a7..b4eee461 100644 --- a/gulpfile.js +++ b/gulpfile.js @@ -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 }))