Wikimedia Browserslist browserslist-config-wikimedia
Shareable Browserslist configuration for Wikimedia projects.
Configuration list to target the Wikimedia and MediaWiki supported browsers.
Install
$ npm install --save-dev browserslist-config-wikimedia
Use
- To use this package in an application, add this to your
package.json
:
{
"browserslist": [
"extends browserslist-config-wikimedia/modern"
]
}
- Or add this line into your Browserslist config file
.browserslistrc
:
extends browserslist-config-wikimedia/modern
- To manually configure a tool that uses Browserslist, importing this package returns the array of supported browsers.
For example, when configuring @babel/preset-env via JavaScript:
{
presets: [
[ 'env', {
targets: {
browsers: require( 'browserslist-config-wikimedia/modern' )
}
} ]
]
}
- To override or slightly adapt one of the available Browserslist configurations, modern or basic, add your overrides to the list. Exemplified with
.browerslistrc
:
extends browserslist-config-wikimedia/basic
not Android <= 8
License
This is available under the MIT LICENSE.