mirror of
https://github.com/twbs/bootstrap.git
synced 2024-12-02 14:24:19 +01:00
code style fixes
This commit is contained in:
parent
015ee2ed74
commit
2bc417732c
@ -7,11 +7,10 @@ module.exports = function generateCommonJSModule(grunt, srcFiles, destFilepath)
|
|||||||
|
|
||||||
function srcPathToDestRequire(srcFilepath) {
|
function srcPathToDestRequire(srcFilepath) {
|
||||||
var requirePath = path.relative(destDir, srcFilepath);
|
var requirePath = path.relative(destDir, srcFilepath);
|
||||||
return "require('"+requirePath+"')";
|
return 'require(\'' + requirePath + '\')';
|
||||||
}
|
}
|
||||||
|
|
||||||
var moduleOutputJs = srcFiles.map(srcPathToDestRequire).join('\n');
|
var moduleOutputJs = srcFiles.map(srcPathToDestRequire).join('\n');
|
||||||
|
|
||||||
try {
|
try {
|
||||||
fs.writeFileSync(destFilepath, moduleOutputJs);
|
fs.writeFileSync(destFilepath, moduleOutputJs);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user