From: XhmikosR Date: Tue, 25 Aug 2015 05:27:01 +0000 (+0300) Subject: grunt/bs-commonjs-generator.js: reapply the fix for Windows slashes. X-Git-Tag: v4.0.0-alpha.2~418 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=108ef992d9fb73dae835eeb8ff80cbec70d4c40f;p=thirdparty%2Fbootstrap.git grunt/bs-commonjs-generator.js: reapply the fix for Windows slashes. [ci skip] --- diff --git a/grunt/bs-commonjs-generator.js b/grunt/bs-commonjs-generator.js index 402a7b7429..af85f47721 100644 --- a/grunt/bs-commonjs-generator.js +++ b/grunt/bs-commonjs-generator.js @@ -16,7 +16,7 @@ module.exports = function generateCommonJSModule(grunt, srcFiles, destFilepath) var destDir = path.dirname(destFilepath); function srcPathToDestRequire(srcFilepath) { - return 'require(\'' + srcFilepath + '\')'; + return 'require(\'' + srcFilepath.replace(/\\/g, '/') + '\')'; } var moduleOutputJs = COMMONJS_BANNER + srcFiles.map(srcPathToDestRequire).join('\n');