ElemeFE / ElemeFE/obsolete-webpack-plugin

False positives on older Android Chrome versions

Open
#15 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
JavaScript
Stars
186
Forks
13
PR merge metrics
No merged PRs in 30d

Description

## Environment

- Plugin Version: 0.5.6
- Webpack Version: 4.41.5
- OS Version: OSX 10.15.2
- Node Version: Node 10
- NPM Version: NPM 6
- Browser Version: Chrome 79.0.3945.117

We are trying to use this plugin to display an "unsupported browser" message on all versions of IE and versions of iOS earlier than 11 (as we know these browsers do not work with our apps.)

For all other browsers we do not want to show a message. With that in mind we are trying to use something like the following plugin settings:

```
{
browsers: ["cover 100%, not iOS < 11, not IE <= 11"],
promptOnUnknownBrowser: false,
promptOnNonTargetBrowser: false
}
```

This does exactly what we need with one exception: versions of **Chrome on Android** earlier than **79** cause the message to appear which seems to be an issue with the query results:

```
npx browserslist "cover 100%, not iOS < 11, not IE <= 11"

and_chr 79
and_ff 68

```

I realise this is not a direct issue with this plugin per-se but I am after any ideas we can use to stop the message appearing on Android Chrome short of forking this plugin and trying to add a hard-coded exception.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.