mirror of
https://github.com/twbs/bootstrap.git
synced 2025-02-19 16:54:24 +01:00
trivial refactor in build-customizer grunt task
This commit is contained in:
parent
aad70834fc
commit
f9ed8e6f00
@ -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'
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user