Skip to content

Commit

Permalink
Move the whole autoprefixer config to configBridge.json.
Browse files Browse the repository at this point in the history
Reduces duplication.
  • Loading branch information
XhmikosR committed Dec 13, 2018
1 parent 9332f3c commit 0f1c6b0
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 15 deletions.
5 changes: 1 addition & 4 deletions Gruntfile.js
Expand Up @@ -193,10 +193,7 @@ module.exports = function (grunt) {
sourcesContent: true
},
processors: [
require('autoprefixer')({
browsers: configBridge.config.autoprefixerBrowsers,
cascade: false
})
require('autoprefixer')(configBridge.config.autoprefixer)
]
},
core: {
Expand Down
2 changes: 1 addition & 1 deletion docs/assets/js/src/customizer.js
Expand Up @@ -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 themeLessSource = preamble + generateLESS('theme.less', lessFileIncludes, vars)

var prefixer = autoprefixer({ browsers: __configBridge.autoprefixerBrowsers })
var prefixer = autoprefixer(__configBridge.autoprefixer)

$.when(
compileLESS(bsLessSource, 'bootstrap', result),
Expand Down
23 changes: 13 additions & 10 deletions grunt/configBridge.json
Expand Up @@ -23,16 +23,19 @@
]
},
"config": {
"autoprefixerBrowsers": [
"Android 2.3",
"Android >= 4",
"Chrome >= 20",
"Firefox >= 24",
"Explorer >= 8",
"iOS >= 6",
"Opera >= 12",
"Safari >= 6"
],
"autoprefixer": {
"browsers": [
"Android 2.3",
"Android >= 4",
"Chrome >= 20",
"Firefox >= 24",
"Explorer >= 8",
"iOS >= 6",
"Opera >= 12",
"Safari >= 6"
],
"cascade": false
},
"jqueryCheck": [
"if (typeof jQuery === 'undefined') {",
" throw new Error('Bootstrap\\'s JavaScript requires jQuery')",
Expand Down

0 comments on commit 0f1c6b0

Please sign in to comment.