Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/twbs/bootstrap.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/grunt
diff options
context:
space:
mode:
authorXhmikosR <xhmikosr@gmail.com>2014-10-26 10:35:14 +0300
committerXhmikosR <xhmikosr@gmail.com>2014-10-26 10:35:14 +0300
commit37facee9224013d3b162c391562db458ef41924e (patch)
tree6aebf3489f8aa56fbcabed7248573369f64acbaa /grunt
parentbab3679d1031ac77503c0c14b56aeda885721584 (diff)
bs-commonjs-generator.js: always use forward slashes in the require path.
Since `path.resolve` is using backslashes on Windows, we ended up with different files. Just replace those with forward slashes.
Diffstat (limited to 'grunt')
-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 18542cc74f..e28900fb5e 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 + '\')';
}