]> git.ipfire.org Git - thirdparty/bootstrap.git/commitdiff
Move the whole autoprefixer config to configBridge.json.
authorXhmikosR <xhmikosr@gmail.com>
Sun, 7 Oct 2018 06:25:39 +0000 (09:25 +0300)
committerXhmikosR <xhmikosr@gmail.com>
Thu, 13 Dec 2018 23:45:51 +0000 (01:45 +0200)
Reduces duplication.

Gruntfile.js
docs/assets/js/src/customizer.js
grunt/configBridge.json

index 10b0bb2c611fd0a7653d353c82abb24cf9cc62f7..c7bfac58f5410d7a4878ffeecc32cbbc1e1ffb6f 100644 (file)
@@ -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: {
index 1b59a4425e2440dc104c6e0497165faee3fe9803..da289995d3f96955f9b7ee03e692a9d44ba14484 100644 (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 themeLessSource = preamble + generateLESS('theme.less',     lessFileIncludes, vars)
 
-    var prefixer = autoprefixer({ browsers: __configBridge.autoprefixerBrowsers })
+    var prefixer = autoprefixer(__configBridge.autoprefixer)
 
     $.when(
       compileLESS(bsLessSource, 'bootstrap', result),
index 943ed237ef5259838de28a3763e3230f23d6deb6..ada42a7b7140cb62b548de700524eaf54feeda20 100644 (file)
     ]
   },
   "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')",