Browserslist shareable configuration for Xerox projects.
- Install this config and prettier as a
devDependency
:
yarn add @xerox/browserslist-config --dev
# or
npm install @xerox/browserslist-config --save-dev
- Add the following to your
package.json
:
{
// ...
"browserslist": [
"extends @xerox/browserslist-config"
]
// ...
}
If you're using environments:
{
// ...
"browserslist": {
"build": [
"extends @xerox/browserslist-config"
],
"test": [
"extends @xerox/browserslist-config/node"
]
}
// ...
}
Currently there are 3 different browserslist configurations:
@xerox/browserslist-config
which uses Adobe Analytics data to get the most appropriate browsers to be supported across Xerox websites.@xerox/browserslist-config/node
which gets the current node version that is expected to be supported across Xerox projects.@xerox/browserslist-config/browserstack
which gets the browsers to be test against in browserstack.