aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChris Rebert <[email protected]>2013-12-29 19:23:57 -0800
committerChris Rebert <[email protected]>2013-12-29 19:23:57 -0800
commit3d3e2f2553e7ecdece141df99278404660e42e0e (patch)
treec10c71a678e7eb5a3102f56f5f02ac2c08023ac9
parent8a62f211131e2a5be7b7413281845c2f66716be4 (diff)
parent0016b508cb0b07e943e96dd227e76d8eabb7ce2e (diff)
downloadbootstrap-3d3e2f2553e7ecdece141df99278404660e42e0e.tar.xz
bootstrap-3d3e2f2553e7ecdece141df99278404660e42e0e.zip
Merge pull request #12036 from ZDroid/grunt-fs-minify
Merge two fs variable declarations into one
-rw-r--r--Gruntfile.js7
1 files changed, 3 insertions, 4 deletions
diff --git a/Gruntfile.js b/Gruntfile.js
index 6107ecafd..46d5184b0 100644
--- a/Gruntfile.js
+++ b/Gruntfile.js
@@ -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)