2
0
mirror of https://github.com/tenrok/bootstrap.git synced 2026-05-21 13:24:08 +03:00

code style fixes

This commit is contained in:
James Friend
2014-08-28 09:54:51 +08:00
parent 015ee2ed74
commit 2bc417732c
+1 -2
View File
@@ -7,11 +7,10 @@ module.exports = function generateCommonJSModule(grunt, srcFiles, destFilepath)
function srcPathToDestRequire(srcFilepath) {
var requirePath = path.relative(destDir, srcFilepath);
return "require('"+requirePath+"')";
return 'require(\'' + requirePath + '\')';
}
var moduleOutputJs = srcFiles.map(srcPathToDestRequire).join('\n');
try {
fs.writeFileSync(destFilepath, moduleOutputJs);
}