Skip to content

Commit 0f1c6b0

Browse files
committed
Move the whole autoprefixer config to configBridge.json.
Reduces duplication.
1 parent 9332f3c commit 0f1c6b0

File tree

3 files changed

+15
-15
lines changed

3 files changed

+15
-15
lines changed

Gruntfile.js

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -193,10 +193,7 @@ module.exports = function (grunt) {
193193
sourcesContent: true
194194
},
195195
processors: [
196-
require('autoprefixer')({
197-
browsers: configBridge.config.autoprefixerBrowsers,
198-
cascade: false
199-
})
196+
require('autoprefixer')(configBridge.config.autoprefixer)
200197
]
201198
},
202199
core: {

docs/assets/js/src/customizer.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -245,7 +245,7 @@ window.onload = function () { // wait for load in a dumb way because B-0
245245
var bsLessSource = preamble + generateLESS('bootstrap.less', lessFileIncludes, vars)
246246
var themeLessSource = preamble + generateLESS('theme.less', lessFileIncludes, vars)
247247

248-
var prefixer = autoprefixer({ browsers: __configBridge.autoprefixerBrowsers })
248+
var prefixer = autoprefixer(__configBridge.autoprefixer)
249249

250250
$.when(
251251
compileLESS(bsLessSource, 'bootstrap', result),

grunt/configBridge.json

Lines changed: 13 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -23,16 +23,19 @@
2323
]
2424
},
2525
"config": {
26-
"autoprefixerBrowsers": [
27-
"Android 2.3",
28-
"Android >= 4",
29-
"Chrome >= 20",
30-
"Firefox >= 24",
31-
"Explorer >= 8",
32-
"iOS >= 6",
33-
"Opera >= 12",
34-
"Safari >= 6"
35-
],
26+
"autoprefixer": {
27+
"browsers": [
28+
"Android 2.3",
29+
"Android >= 4",
30+
"Chrome >= 20",
31+
"Firefox >= 24",
32+
"Explorer >= 8",
33+
"iOS >= 6",
34+
"Opera >= 12",
35+
"Safari >= 6"
36+
],
37+
"cascade": false
38+
},
3639
"jqueryCheck": [
3740
"if (typeof jQuery === 'undefined') {",
3841
" throw new Error('Bootstrap\\'s JavaScript requires jQuery')",

0 commit comments

Comments
 (0)