diff options
| author | XhmikosR <[email protected]> | 2014-10-26 09:35:14 +0200 |
|---|---|---|
| committer | XhmikosR <[email protected]> | 2014-10-26 09:35:14 +0200 |
| commit | 37facee9224013d3b162c391562db458ef41924e (patch) | |
| tree | 6aebf3489f8aa56fbcabed7248573369f64acbaa | |
| parent | bab3679d1031ac77503c0c14b56aeda885721584 (diff) | |
| download | bootstrap-37facee9224013d3b162c391562db458ef41924e.tar.xz bootstrap-37facee9224013d3b162c391562db458ef41924e.zip | |
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.
| -rw-r--r-- | grunt/bs-commonjs-generator.js | 2 |
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 + '\')'; } |
