From 380eee72cbd65bdb1f55149aef8ade78bafa9660 Mon Sep 17 00:00:00 2001 From: Indu Prakash Date: Wed, 11 Jul 2018 17:29:26 -0500 Subject: [PATCH] Using correct separator --- code/gulpfile.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/code/gulpfile.js b/code/gulpfile.js index d9edbdbd53..0f4bceaf4f 100644 --- a/code/gulpfile.js +++ b/code/gulpfile.js @@ -42,6 +42,7 @@ const remover = require('gulp-remove-code'); const map = require('map-stream'); const rename = require('gulp-rename'); const runSequence = require('run-sequence'); +const path = require('path'); // ----------------------------------------------------------------------------- // Configuration @@ -63,7 +64,7 @@ var buildHeaderFile = function() { return map(function(file, cb) { - var parts = file.path.split("/"); + var parts = file.path.split(path.sep); var filename = parts[parts.length - 1]; var destination = staticFolder + filename + ".h"; var safename = "webui_image";