Skip to content
This repository has been archived by the owner on Sep 4, 2019. It is now read-only.

Commit

Permalink
Fix to allow compile-ui.js to work correctly on windows
Browse files Browse the repository at this point in the history
Reviewed By: Erik Johnson <erjohnson@rim.com>
Tested By: Jenny Gee <jgee@rim.com>
  • Loading branch information
Rowell Cruz authored and nukulb committed Jul 13, 2012
1 parent 22bc3ee commit ef0d083
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions build/build/compile-ui.js
Expand Up @@ -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";
});
Expand Down

0 comments on commit ef0d083

Please sign in to comment.