aboutsummaryrefslogtreecommitdiff
path: root/grunt
diff options
context:
space:
mode:
authorfat <[email protected]>2015-05-13 10:13:34 -0700
committerfat <[email protected]>2015-05-13 10:13:34 -0700
commitdafdd180cd54a2e238fe715d8aeb83c07f385a18 (patch)
tree7db2949420f90040726e9f26dd5afc2c41364300 /grunt
parent6b251582d6c01dfe4e27062118a1af1811625ac5 (diff)
downloadbootstrap-dafdd180cd54a2e238fe715d8aeb83c07f385a18.tar.xz
bootstrap-dafdd180cd54a2e238fe715d8aeb83c07f385a18.zip
add umd module support in dist
Diffstat (limited to 'grunt')
-rw-r--r--grunt/bs-commonjs-generator.js3
1 files changed, 1 insertions, 2 deletions
diff --git a/grunt/bs-commonjs-generator.js b/grunt/bs-commonjs-generator.js
index 5a3fc156d..700b839ce 100644
--- a/grunt/bs-commonjs-generator.js
+++ b/grunt/bs-commonjs-generator.js
@@ -9,8 +9,7 @@ module.exports = function generateCommonJSModule(grunt, srcFiles, destFilepath)
var destDir = path.dirname(destFilepath);
function srcPathToDestRequire(srcFilepath) {
- var requirePath = path.relative(destDir, srcFilepath).replace(/\\/g, '/');
- return 'require(\'' + requirePath + '\')';
+ return 'require(\'' + srcFilepath + '\')';
}
var moduleOutputJs = COMMONJS_BANNER + srcFiles.map(srcPathToDestRequire).join('\n');