aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Gruntfile.js4
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'
}