css: update browserslist requirement.

Update the minimum browser requirement from browsers released since
2012, to browsers released in the last 5 years.

This means PostCSS won't prefix CSS properties like `flex` or other
properties supported by browsers since 2017. Babel also won't transpile
Javascript syntax that has been supported by browsers since 2017.
This commit is contained in:
evazion
2022-01-08 12:03:45 -06:00
parent bb60a59001
commit 3bf65d1378
2 changed files with 1 additions and 5 deletions

View File

@@ -60,7 +60,6 @@
] ]
}, },
"browserslist": [ "browserslist": [
"defaults", "last 5 years"
"since 2012"
] ]
} }

View File

@@ -2,9 +2,6 @@ module.exports = {
plugins: [ plugins: [
require('postcss-import'), require('postcss-import'),
require('postcss-preset-env')({ require('postcss-preset-env')({
autoprefixer: {
flexbox: 'no-2009'
},
stage: 3 stage: 3
}) })
] ]