mirror of
https://github.com/twbs/bootstrap.git
synced 2022-11-09 12:25:43 -05:00
grunt/bs-commonjs-generator.js: reapply the fix for Windows slashes.
[ci skip]
This commit is contained in:
parent
a0ba1f1f62
commit
108ef992d9
1 changed files with 1 additions and 1 deletions
|
@ -16,7 +16,7 @@ module.exports = function generateCommonJSModule(grunt, srcFiles, destFilepath)
|
||||||
var destDir = path.dirname(destFilepath);
|
var destDir = path.dirname(destFilepath);
|
||||||
|
|
||||||
function srcPathToDestRequire(srcFilepath) {
|
function srcPathToDestRequire(srcFilepath) {
|
||||||
return 'require(\'' + srcFilepath + '\')';
|
return 'require(\'' + srcFilepath.replace(/\\/g, '/') + '\')';
|
||||||
}
|
}
|
||||||
|
|
||||||
var moduleOutputJs = COMMONJS_BANNER + srcFiles.map(srcPathToDestRequire).join('\n');
|
var moduleOutputJs = COMMONJS_BANNER + srcFiles.map(srcPathToDestRequire).join('\n');
|
||||||
|
|
Loading…
Add table
Reference in a new issue