mirror of
https://github.com/twbs/bootstrap.git
synced 2025-01-17 09:52:29 +01:00
Merge two fs variable declarations into one
One is enough.
This commit is contained in:
parent
a2aaf80c7e
commit
0016b508cb
@ -9,7 +9,10 @@ module.exports = function (grunt) {
|
||||
RegExp.quote = function (string) {
|
||||
return string.replace(/[-\\^$*+?.()|[\]{}]/g, '\\$&')
|
||||
}
|
||||
|
||||
var fs = require('fs')
|
||||
var btoa = require('btoa')
|
||||
|
||||
// Project configuration.
|
||||
grunt.initConfig({
|
||||
|
||||
@ -320,8 +323,6 @@ module.exports = function (grunt) {
|
||||
grunt.registerTask('change-version-number', ['sed']);
|
||||
|
||||
grunt.registerTask('build-glyphicons-data', function () {
|
||||
var fs = require('fs')
|
||||
|
||||
// Pass encoding, utf8, so `readFileSync` will return a string instead of a
|
||||
// buffer
|
||||
var glyphiconsFile = fs.readFileSync('less/glyphicons.less', 'utf8')
|
||||
@ -347,8 +348,6 @@ module.exports = function (grunt) {
|
||||
|
||||
// task for building customizer
|
||||
grunt.registerTask('build-customizer', 'Add scripts/less files to customizer.', function () {
|
||||
var fs = require('fs')
|
||||
|
||||
function getFiles(type) {
|
||||
var files = {}
|
||||
fs.readdirSync(type)
|
||||
|
Loading…
x
Reference in New Issue
Block a user