diff options
| author | James Friend <[email protected]> | 2014-08-28 09:54:51 +0800 |
|---|---|---|
| committer | James Friend <[email protected]> | 2014-08-28 09:54:51 +0800 |
| commit | 2bc417732c4142091e92fce07f93c4fff11173b1 (patch) | |
| tree | 7e5d7dd2844c2d1cfd7eea97f1265a578bb178da | |
| parent | 015ee2ed74bcdc48eea9bb7f6bb453f1c2f182aa (diff) | |
| download | bootstrap-2bc417732c4142091e92fce07f93c4fff11173b1.tar.xz bootstrap-2bc417732c4142091e92fce07f93c4fff11173b1.zip | |
code style fixes
| -rw-r--r-- | grunt/bs-commonjs-generator.js | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/grunt/bs-commonjs-generator.js b/grunt/bs-commonjs-generator.js index 8ab309b33..e5173944c 100644 --- a/grunt/bs-commonjs-generator.js +++ b/grunt/bs-commonjs-generator.js @@ -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); } |
