diff options
| author | Chris Rebert <[email protected]> | 2013-10-09 17:57:52 -0700 |
|---|---|---|
| committer | Chris Rebert <[email protected]> | 2013-10-09 18:03:08 -0700 |
| commit | f9ed8e6f003d60e50873976a6573eb0faa3c26c9 (patch) | |
| tree | b58ed3568fcec477fe15eb4b422ebe69035f73cc | |
| parent | aad70834fc2546d5e877898098707930a7d7a4c3 (diff) | |
| download | bootstrap-f9ed8e6f003d60e50873976a6573eb0faa3c26c9.tar.xz bootstrap-f9ed8e6f003d60e50873976a6573eb0faa3c26c9.zip | |
trivial refactor in build-customizer grunt task
| -rw-r--r-- | Gruntfile.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Gruntfile.js b/Gruntfile.js index 4242bb7bd..6d33703c8 100644 --- a/Gruntfile.js +++ b/Gruntfile.js @@ -210,8 +210,8 @@ module.exports = function(grunt) { return type == 'fonts' ? true : new RegExp('\\.' + type + '$').test(path) }) .forEach(function (path) { - return type == 'fonts' ? files[path] = btoa(fs.readFileSync(type + '/' + path)) : - files[path] = fs.readFileSync(type + '/' + path, 'utf8') + var fullPath = type + '/' + path + return files[path] = (type == 'fonts' ? btoa(fs.readFileSync(fullPath)) : fs.readFileSync(fullPath, 'utf8')) }) return 'var __' + type + ' = ' + JSON.stringify(files) + '\n' } |
