You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
mahdi
0cb8d673d7
|
2 years ago | |
---|---|---|
.. | ||
node_modules/.bin | 2 years ago | |
LICENSE | 2 years ago | |
README.md | 2 years ago | |
browser.js | 2 years ago | |
cli.js | 2 years ago | |
error.d.ts | 2 years ago | |
error.js | 2 years ago | |
index.d.ts | 2 years ago | |
index.js | 2 years ago | |
node.js | 2 years ago | |
package.json | 2 years ago | |
parse.js | 2 years ago |
README.md
Browserslist
The config to share target browsers and Node.js versions between different front-end tools. It is used in:
- Autoprefixer
- Babel
- postcss-preset-env
- eslint-plugin-compat
- stylelint-no-unsupported-browser-features
- postcss-normalize
- obsolete-webpack-plugin
All tools will find target browsers automatically,
when you add the following to package.json
:
"browserslist": [
"defaults",
"not IE 11",
"maintained node versions"
]
Or in .browserslistrc
config:
# Browsers that we support
defaults
not IE 11
maintained node versions
Developers set their version lists using queries like last 2 versions
to be free from updating versions manually.
Browserslist will use caniuse-lite
with Can I Use data for this queries.
Browserslist will take queries from tool option,
browserslist
config, .browserslistrc
config,
browserslist
section in package.json
or environment variables.
Docs
Read full docs on GitHub.