obsolete-webpack-plugin
obsolete-webpack-plugin copied to clipboard
False positives on older Android Chrome versions
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
<snip>
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.
@robcaldecottvelo
npx browserslist "cover 100%, not iOS < 11, not IE <= 11, not last 1 ChromeAndroid version"