mirror of
https://github.com/twbs/bootstrap.git
synced 2025-01-17 09:52:29 +01:00
Un-nest Autoprefixer settings in module object
[skip sauce] [skip validator]
This commit is contained in:
parent
c9d86ff3a3
commit
b0ab6bbf05
@ -22,7 +22,7 @@ module.exports = function (grunt) {
|
|||||||
var npmShrinkwrap = require('npm-shrinkwrap');
|
var npmShrinkwrap = require('npm-shrinkwrap');
|
||||||
var mq4HoverShim = require('mq4-hover-shim');
|
var mq4HoverShim = require('mq4-hover-shim');
|
||||||
var autoprefixerSettings = require('./grunt/autoprefixer-settings.js');
|
var autoprefixerSettings = require('./grunt/autoprefixer-settings.js');
|
||||||
var autoprefixer = require('autoprefixer')(autoprefixerSettings.settings);
|
var autoprefixer = require('autoprefixer')(autoprefixerSettings);
|
||||||
|
|
||||||
var generateCommonJSModule = require('./grunt/bs-commonjs-generator.js');
|
var generateCommonJSModule = require('./grunt/bs-commonjs-generator.js');
|
||||||
var configBridge = grunt.file.readJSON('./grunt/configBridge.json', { encoding: 'utf8' });
|
var configBridge = grunt.file.readJSON('./grunt/configBridge.json', { encoding: 'utf8' });
|
||||||
|
@ -1,33 +1,31 @@
|
|||||||
module.exports = {
|
module.exports = {
|
||||||
settings: {
|
browsers: [
|
||||||
browsers: [
|
//
|
||||||
//
|
// Official browser support policy:
|
||||||
// Official browser support policy:
|
// http://v4-alpha.getbootstrap.com/getting-started/browsers-devices/#supported-browsers
|
||||||
// http://v4-alpha.getbootstrap.com/getting-started/browsers-devices/#supported-browsers
|
//
|
||||||
//
|
'Chrome >= 35', // Exact version number here is kinda arbitrary
|
||||||
'Chrome >= 35', // Exact version number here is kinda arbitrary
|
// Rather than using Autoprefixer's native "Firefox ESR" version specifier string,
|
||||||
// Rather than using Autoprefixer's native "Firefox ESR" version specifier string,
|
// we deliberately hardcode the number. This is to avoid unwittingly severely breaking the previous ESR in the event that:
|
||||||
// we deliberately hardcode the number. This is to avoid unwittingly severely breaking the previous ESR in the event that:
|
// (a) we happen to ship a new Bootstrap release soon after the release of a new ESR,
|
||||||
// (a) we happen to ship a new Bootstrap release soon after the release of a new ESR,
|
// such that folks haven't yet had a reasonable amount of time to upgrade; and
|
||||||
// such that folks haven't yet had a reasonable amount of time to upgrade; and
|
// (b) the new ESR has unprefixed CSS properties/values whose absence would severely break webpages
|
||||||
// (b) the new ESR has unprefixed CSS properties/values whose absence would severely break webpages
|
// (e.g. `box-sizing`, as opposed to `background: linear-gradient(...)`).
|
||||||
// (e.g. `box-sizing`, as opposed to `background: linear-gradient(...)`).
|
// Since they've been unprefixed, Autoprefixer will stop prefixing them,
|
||||||
// Since they've been unprefixed, Autoprefixer will stop prefixing them,
|
// thus causing them to not work in the previous ESR (where the prefixes were required).
|
||||||
// thus causing them to not work in the previous ESR (where the prefixes were required).
|
'Firefox >= 38', // Current Firefox Extended Support Release (ESR); https://www.mozilla.org/en-US/firefox/organizations/faq/
|
||||||
'Firefox >= 38', // Current Firefox Extended Support Release (ESR); https://www.mozilla.org/en-US/firefox/organizations/faq/
|
// Note: Edge versions in Autoprefixer & Can I Use refer to the EdgeHTML rendering engine version,
|
||||||
// Note: Edge versions in Autoprefixer & Can I Use refer to the EdgeHTML rendering engine version,
|
// NOT the Edge app version shown in Edge's "About" screen.
|
||||||
// NOT the Edge app version shown in Edge's "About" screen.
|
// For example, at the time of writing, Edge 20 on an up-to-date system uses EdgeHTML 12.
|
||||||
// For example, at the time of writing, Edge 20 on an up-to-date system uses EdgeHTML 12.
|
// See also https://github.com/Fyrd/caniuse/issues/1928
|
||||||
// See also https://github.com/Fyrd/caniuse/issues/1928
|
'Edge >= 12',
|
||||||
'Edge >= 12',
|
'Explorer >= 9',
|
||||||
'Explorer >= 9',
|
// Out of leniency, we prefix these 1 version further back than the official policy.
|
||||||
// Out of leniency, we prefix these 1 version further back than the official policy.
|
'iOS >= 8',
|
||||||
'iOS >= 8',
|
'Safari >= 8',
|
||||||
'Safari >= 8',
|
// The following remain NOT officially supported, but we're lenient and include their prefixes to avoid severely breaking in them.
|
||||||
// The following remain NOT officially supported, but we're lenient and include their prefixes to avoid severely breaking in them.
|
'Android 2.3',
|
||||||
'Android 2.3',
|
'Android >= 4',
|
||||||
'Android >= 4',
|
'Opera >= 12'
|
||||||
'Opera >= 12'
|
]
|
||||||
]
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user