cordova-plugin-webpack
cordova-plugin-webpack copied to clipboard
fix: Use webpack host in content URL if specified and is valid IP address
If a host is specified, then the automatic address guess via prepareURL always returns undefined for the lanUrlForConfig. This change allows the host to be embedded in the app if it is a valid IP address. This allows overriding via config or CLI when automatic IP resolution fails.
This allows the issue seen in #161 to be addressed by passing --webpack.host=<MACHINE IP ADDRESS> to the command.