From a358fc9dc1b71c4177735c4ca27c9da350d655af Mon Sep 17 00:00:00 2001 From: Chris Rebert Date: Mon, 20 Jun 2016 16:18:21 -0700 Subject: Replace grunt-postcss with postcss-cli (#20140) Refs #19990 Continues the degruntification process. Also removes mq4-hover-shim for now, since it doesn't yet implement the standard PostCSS plugin interface. --- grunt/postcss.js | 42 ++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 42 insertions(+) create mode 100644 grunt/postcss.js (limited to 'grunt/postcss.js') diff --git a/grunt/postcss.js b/grunt/postcss.js new file mode 100644 index 000000000..a6fc411ff --- /dev/null +++ b/grunt/postcss.js @@ -0,0 +1,42 @@ +module.exports = { + use: [ + 'postcss-flexbugs-fixes', + 'autoprefixer' + ], + map: { + inline: false, + annotation: true, + sourcesContent: true + }, + autoprefixer: { + browsers: [ + // + // Official browser support policy: + // http://v4-alpha.getbootstrap.com/getting-started/browsers-devices/#supported-browsers + // + 'Chrome >= 35', // Exact version number here is kinda arbitrary + // 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: + // (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 + // (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(...)`). + // 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). + '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, + // 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. + // See also https://github.com/Fyrd/caniuse/issues/1928 + 'Edge >= 12', + 'Explorer >= 9', + // Out of leniency, we prefix these 1 version further back than the official policy. + 'iOS >= 8', + 'Safari >= 8', + // The following remain NOT officially supported, but we're lenient and include their prefixes to avoid severely breaking in them. + 'Android 2.3', + 'Android >= 4', + 'Opera >= 12' + ] + } +} -- cgit v1.2.3 From 2e69dfa8c1679238579ef6f5ec85deb755e4fb6d Mon Sep 17 00:00:00 2001 From: Bardi Harborow Date: Tue, 4 Oct 2016 02:55:59 +1000 Subject: Fix broken/redirected links, moving to HTTPS where possible. (#20557) --- grunt/postcss.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'grunt/postcss.js') diff --git a/grunt/postcss.js b/grunt/postcss.js index a6fc411ff..7e7eb4a7e 100644 --- a/grunt/postcss.js +++ b/grunt/postcss.js @@ -12,7 +12,7 @@ module.exports = { browsers: [ // // Official browser support policy: - // http://v4-alpha.getbootstrap.com/getting-started/browsers-devices/#supported-browsers + // https://v4-alpha.getbootstrap.com/getting-started/browsers-devices/#supported-browsers // 'Chrome >= 35', // Exact version number here is kinda arbitrary // Rather than using Autoprefixer's native "Firefox ESR" version specifier string, -- cgit v1.2.3