cordova-plugin-webpack icon indicating copy to clipboard operation
cordova-plugin-webpack copied to clipboard

fix: Use webpack host in content URL if specified and is valid IP address

Open peitschie opened this issue 4 years ago • 0 comments

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.

peitschie avatar Dec 11 '20 13:12 peitschie