]>
Commit | Line | Data |
---|---|---|
91e44d91 S |
1 | module.exports = { |
2 | use: [ | |
3 | 'postcss-flexbugs-fixes', | |
4 | 'autoprefixer' | |
5 | ], | |
6 | map: { | |
7 | inline: false, | |
8 | annotation: true, | |
9 | sourcesContent: true | |
10 | }, | |
11 | autoprefixer: { | |
12 | browsers: [ | |
13 | // | |
14 | // Official browser support policy: | |
15 | // https://v4-alpha.getbootstrap.com/getting-started/browsers-devices/#supported-browsers | |
16 | // | |
17 | 'Chrome >= 35', // Exact version number here is kinda arbitrary | |
18 | // Rather than using Autoprefixer's native "Firefox ESR" version specifier string, | |
19 | // we deliberately hardcode the number. This is to avoid unwittingly severely breaking the previous ESR in the event that: | |
20 | // (a) we happen to ship a new Bootstrap release soon after the release of a new ESR, | |
21 | // such that folks haven't yet had a reasonable amount of time to upgrade; and | |
22 | // (b) the new ESR has unprefixed CSS properties/values whose absence would severely break webpages | |
23 | // (e.g. `box-sizing`, as opposed to `background: linear-gradient(...)`). | |
24 | // Since they've been unprefixed, Autoprefixer will stop prefixing them, | |
25 | // thus causing them to not work in the previous ESR (where the prefixes were required). | |
26 | 'Firefox >= 38', // Current Firefox Extended Support Release (ESR); https://www.mozilla.org/en-US/firefox/organizations/faq/ | |
27 | // Note: Edge versions in Autoprefixer & Can I Use refer to the EdgeHTML rendering engine version, | |
28 | // NOT the Edge app version shown in Edge's "About" screen. | |
29 | // For example, at the time of writing, Edge 20 on an up-to-date system uses EdgeHTML 12. | |
30 | // See also https://github.com/Fyrd/caniuse/issues/1928 | |
31 | 'Edge >= 12', | |
32 | 'Explorer >= 10', | |
33 | // Out of leniency, we prefix these 1 version further back than the official policy. | |
34 | 'iOS >= 8', | |
35 | 'Safari >= 8', | |
36 | // The following remain NOT officially supported, but we're lenient and include their prefixes to avoid severely breaking in them. | |
37 | 'Android 2.3', | |
38 | 'Android >= 4', | |
39 | 'Opera >= 12' | |
40 | ] | |
41 | } | |
42 | } |