Browserslist Config
This configuration reflects Growcss's supported browser policy for their UI library and build tools.
What is Browserslist?
Browserslist is a library to share a browsers list between different front-end tools, like Autoprefixer, Eslint, and Stylelint.
Supported Browsers
{
"production": [
"> 1%",
"last 2 versions",
"Firefox ESR"
],
"legacyBrowsers": [
"> 1%",
"last 2 versions",
"Firefox ESR"
],
"modernBrowsers": [
"last 2 Chrome versions",
"not Chrome < 60",
"last 2 Safari versions",
"not Safari < 10.1",
"last 2 iOS versions",
"not iOS < 10.3",
"last 2 Firefox versions",
"not Firefox < 54",
"last 2 Edge versions",
"not Edge < 15"
],
"ssr": [
"node 12"
]
}
Installation
Install the module
$ npm install browserslist-config-anolilab --save-dev
Usage
package.json
{
"browserslist": ["extends browserslist-config-anolilab"]
}
Alternatively, add this to .browserslistrc
file:
extends browserslist-config-anolilab
or when using babel-preset-env
{
presets: [
[
'env',
{
targets: {
browsers: require('browserslist-config-anolilab'),
},
},
],
];
}