source: trip-planner-front/node_modules/browserslist/README.md@ eed0bf8

Last change on this file since eed0bf8 was 6a3a178, checked in by Ema <ema_spirova@…>, 3 years ago

initial commit

  • Property mode set to 100644
File size: 2.5 KB
Line 
1# Browserslist [![Cult Of Martians][cult-img]][cult]
2
3<img width="120" height="120" alt="Browserslist logo by Anton Lovchikov"
4 src="https://browserslist.github.io/browserslist/logo.svg" align="right">
5
6The config to share target browsers and Node.js versions between different
7front-end tools. It is used in:
8
9* [Autoprefixer]
10* [Babel]
11* [postcss-preset-env]
12* [eslint-plugin-compat]
13* [stylelint-no-unsupported-browser-features]
14* [postcss-normalize]
15* [obsolete-webpack-plugin]
16
17All tools will find target browsers automatically,
18when you add the following to `package.json`:
19
20```json
21 "browserslist": [
22 "defaults",
23 "not IE 11",
24 "maintained node versions"
25 ]
26```
27
28Or in `.browserslistrc` config:
29
30```yaml
31# Browsers that we support
32
33defaults
34not IE 11
35maintained node versions
36```
37
38Developers set their version lists using queries like `last 2 versions`
39to be free from updating versions manually.
40Browserslist will use [`caniuse-lite`] with [Can I Use] data for this queries.
41
42Browserslist will take queries from tool option,
43`browserslist` config, `.browserslistrc` config,
44`browserslist` section in `package.json` or environment variables.
45
46[cult-img]: https://cultofmartians.com/assets/badges/badge.svg
47[cult]: https://cultofmartians.com/done.html
48
49<a href="https://evilmartians.com/?utm_source=browserslist">
50 <img src="https://evilmartians.com/badges/sponsored-by-evil-martians.svg"
51 alt="Sponsored by Evil Martians" width="236" height="54">
52</a>
53
54[stylelint-no-unsupported-browser-features]: https://github.com/ismay/stylelint-no-unsupported-browser-features
55[eslint-plugin-compat]: https://github.com/amilajack/eslint-plugin-compat
56[Browserslist Example]: https://github.com/browserslist/browserslist-example
57[postcss-preset-env]: https://github.com/jonathantneal/postcss-preset-env
58[postcss-normalize]: https://github.com/jonathantneal/postcss-normalize
59[`caniuse-lite`]: https://github.com/ben-eb/caniuse-lite
60[Autoprefixer]: https://github.com/postcss/autoprefixer
61[Can I Use]: https://caniuse.com/
62[Babel]: https://github.com/babel/babel/tree/master/packages/babel-preset-env
63[obsolete-webpack-plugin]: https://github.com/ElemeFE/obsolete-webpack-plugin
64
65## Docs
66Read **[full docs](https://github.com/browserslist/browserslist#readme)** on GitHub.
Note: See TracBrowser for help on using the repository browser.