Weex Downgrade Plugin
Usage
// webpack.config.jsvar DowngradePlugin = var options = /* downgrade options */ moduleexports = entry: '...' output: '...' plugins: options
Options
force
: Force downgrade.condition
: Downgrade if the env satisfies the specific condition.
force
force: true
If the force
is set to true
, it will ignore the condition params.
condition
The format of the condition
option is same as the argument of Downgrade.condition().
condition: // Any condition is matched will be downgraded. ios: osVersion: '>1.0' appVersion: '>1.0.0' weexVersion: '>1' deviceModel: 'iPhone5,1' android: osVersion: '>1.0' // Check condition with multiple app. // The `MY_APP_A` and `MY_APP_B` is WXEnvironment's appName param. appVersion: MY_APP_A: '>1.0.0' MY_APP_B: '>3.0.0' weexVersion: '>1' deviceModel: 'G-2PW2100'