@xerox/browserslist-config
v2.0.5
Published
Browserslist shareable configuration for Xerox projects.
Downloads
1,006
Readme
@xerox/browserslist-config
Browserslist shareable configuration for Xerox projects.
Usage
- 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"
]
}
// ...
}
Configurations
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.