2
0
mirror of https://github.com/tenrok/bootstrap.git synced 2026-06-17 19:21:23 +03:00

Move the whole autoprefixer config to configBridge.json.

Reduces duplication.
This commit is contained in:
XhmikosR
2018-10-07 09:25:39 +03:00
parent 9332f3c7ac
commit 0f1c6b005f
3 changed files with 15 additions and 15 deletions
+1 -4
View File
@@ -193,10 +193,7 @@ module.exports = function (grunt) {
sourcesContent: true sourcesContent: true
}, },
processors: [ processors: [
require('autoprefixer')({ require('autoprefixer')(configBridge.config.autoprefixer)
browsers: configBridge.config.autoprefixerBrowsers,
cascade: false
})
] ]
}, },
core: { core: {
+1 -1
View File
@@ -245,7 +245,7 @@ window.onload = function () { // wait for load in a dumb way because B-0
var bsLessSource = preamble + generateLESS('bootstrap.less', lessFileIncludes, vars) var bsLessSource = preamble + generateLESS('bootstrap.less', lessFileIncludes, vars)
var themeLessSource = preamble + generateLESS('theme.less', lessFileIncludes, vars) var themeLessSource = preamble + generateLESS('theme.less', lessFileIncludes, vars)
var prefixer = autoprefixer({ browsers: __configBridge.autoprefixerBrowsers }) var prefixer = autoprefixer(__configBridge.autoprefixer)
$.when( $.when(
compileLESS(bsLessSource, 'bootstrap', result), compileLESS(bsLessSource, 'bootstrap', result),
+13 -10
View File
@@ -23,16 +23,19 @@
] ]
}, },
"config": { "config": {
"autoprefixerBrowsers": [ "autoprefixer": {
"Android 2.3", "browsers": [
"Android >= 4", "Android 2.3",
"Chrome >= 20", "Android >= 4",
"Firefox >= 24", "Chrome >= 20",
"Explorer >= 8", "Firefox >= 24",
"iOS >= 6", "Explorer >= 8",
"Opera >= 12", "iOS >= 6",
"Safari >= 6" "Opera >= 12",
], "Safari >= 6"
],
"cascade": false
},
"jqueryCheck": [ "jqueryCheck": [
"if (typeof jQuery === 'undefined') {", "if (typeof jQuery === 'undefined') {",
" throw new Error('Bootstrap\\'s JavaScript requires jQuery')", " throw new Error('Bootstrap\\'s JavaScript requires jQuery')",