diff --git a/code/gulpfile.js b/code/gulpfile.js index d9edbdbd..0f4bceaf 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";