From ef0d083e593b950d0fc8a7cea1b86534683116de Mon Sep 17 00:00:00 2001 From: Rowell Cruz Date: Fri, 13 Jul 2012 15:06:10 -0400 Subject: [PATCH] Fix to allow compile-ui.js to work correctly on windows Reviewed By: Erik Johnson Tested By: Jenny Gee --- build/build/compile-ui.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/build/build/compile-ui.js b/build/build/compile-ui.js index 3f42b766..eeb32344 100644 --- a/build/build/compile-ui.js +++ b/build/build/compile-ui.js @@ -101,8 +101,8 @@ module.exports = function (prev, baton) { outputCSS = include(cssFiles); outputJS += include([path.join(_c.BUILD, 'FILE_LICENSE'), ]); - outputJS += include(jsFiles, function (file, path) { - var pathSplit = path.split("\/"); + outputJS += include(jsFiles, function (file, filepath) { + var pathSplit = path.normalize(filepath).split(/[\\\/]/); return "define('" + pathSplit[pathSplit.length - 2] + "', function (require, exports, module) {\n" + file + "});\n"; });