aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorXhmikosR <[email protected]>2014-10-26 22:13:54 +0200
committerXhmikosR <[email protected]>2014-10-26 22:13:54 +0200
commit554568a184f7c0bb82b4f55b23e57c1fc5378b6a (patch)
tree6c1b7788dd24cb37fba89b151f038cdb76eb95b5
parentd40288b0c0e43094689ca0c1a491695447b60e58 (diff)
parent37facee9224013d3b162c391562db458ef41924e (diff)
downloadbootstrap-554568a184f7c0bb82b4f55b23e57c1fc5378b6a.tar.xz
bootstrap-554568a184f7c0bb82b4f55b23e57c1fc5378b6a.zip
Merge pull request #14876 from twbs/fix-14875
bs-commonjs-generator.js: always use forward slashes in the require path.
-rw-r--r--grunt/bs-commonjs-generator.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/grunt/bs-commonjs-generator.js b/grunt/bs-commonjs-generator.js
index 18542cc74..e28900fb5 100644
--- a/grunt/bs-commonjs-generator.js
+++ b/grunt/bs-commonjs-generator.js
@@ -8,7 +8,7 @@ module.exports = function generateCommonJSModule(grunt, srcFiles, destFilepath)
var destDir = path.dirname(destFilepath);
function srcPathToDestRequire(srcFilepath) {
- var requirePath = path.relative(destDir, srcFilepath);
+ var requirePath = path.relative(destDir, srcFilepath).replace(/\\/g, '/');
return 'require(\'' + requirePath + '\')';
}