Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

npx browserslist will ignore not clauses #515

Open
Razican opened this issue Aug 6, 2020 · 4 comments
Open

npx browserslist will ignore not clauses #515

Razican opened this issue Aug 6, 2020 · 4 comments

Comments

@Razican
Copy link

Razican commented Aug 6, 2020

Hello, I am using this .browserslistrc file:

>= 0.15%
last 1 major version
Firefox ESR
not dead
not iOS < 10
not Chrome < 70
not Explorer <= 11
not ExplorerMobile <= 11
not OperaMobile <= 50
not KaiOS <= 100
not Baidu <= 100
not QQAndroid <= 100

Basically, I would like to drop support for not-so-used/old browsers. The issue is that when I use npx browserslist, I get the following:

and_chr 81
and_ff 68
and_qq 10.4
and_uc 12.12
android 81
baidu 7.12
chrome 83
chrome 81
chrome 80
edge 83
edge 81
edge 18
firefox 78
firefox 77
firefox 76
firefox 68
ie 11
ios_saf 13.4-13.5
ios_saf 13.3
ios_saf 12.2-12.4
kaios 2.5
op_mini all
op_mob 46
opera 69
opera 68
safari 13.1
safari 13
samsung 12.0
samsung 11.1-11.2

As you can see, there are some browsers such as IE that still appear.

@ai
Copy link
Member

ai commented Aug 6, 2020

IE 11 is not part of dead. Add explicit not IE 11 to remove it.

There is a possible bug with <=, but I am spending all my free open source time of preparing PostCSS 8. You will need to debug and send PR.

@Razican
Copy link
Author

Razican commented Aug 7, 2020

IE 11 is not part of dead. Add explicit not IE 11 to remove it.

That didn't work either, I still get the same list. Interestingly though, in https://browserl.ist/ it works as expected.

@Razican
Copy link
Author

Razican commented Aug 20, 2020

Closing this, as I did a typo with the name when creating the file (.browserlistrc vs .browserslistrc).

@Razican Razican closed this as completed Aug 20, 2020
@ai
Copy link
Member

ai commented Aug 20, 2020

It will be nice to add warning on this case

@ai ai reopened this Aug 20, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants