From f26ae186958012d7d27fc1862c1715327991f123 Mon Sep 17 00:00:00 2001 From: Peter Blazejewicz Date: Sat, 18 May 2019 23:35:25 +0200 Subject: [PATCH] Update BrowserList configuration and usage. Closes #108 - single place of configuration via .browserlistrc file - up-to-date configuration aligned with @angular/cli generated one Thanks! --- .browserslistrc | 16 ++++++++++------ postcss.config.js | 6 +----- 2 files changed, 11 insertions(+), 11 deletions(-) diff --git a/.browserslistrc b/.browserslistrc index a834cb0d3..17e9873ff 100644 --- a/.browserslistrc +++ b/.browserslistrc @@ -1,7 +1,11 @@ -[production staging] -> 1% -ie 10 +# This file is currently used by autoprefixer to adjust CSS to support the below specified browsers +# For additional information regarding the format and rule options, please see: +# https://github.com/browserslist/browserslist#queries +# +# For IE 10-11 support, please remove 'not' from the last line of the file and adjust as needed -[development] -last 1 chrome version -last 1 firefox version +> 0.5% +last 2 versions +Firefox ESR +not dead +IE 10-11 \ No newline at end of file diff --git a/postcss.config.js b/postcss.config.js index 3691590b4..b0f214d58 100644 --- a/postcss.config.js +++ b/postcss.config.js @@ -1,7 +1,3 @@ module.exports = { - plugins: { - autoprefixer: { - browsers: ['last 2 versions'] - }, - }, + plugins: [require('autoprefixer')] };