createBundleURL method

String createBundleURL(
  1. String host,
  2. String bundleName,
  3. bool devMode,
  4. bool hmr,
  5. bool jsMinify,
)

Implementation

String createBundleURL(
  String host,
  String bundleName,
  bool devMode,
  bool hmr,
  bool jsMinify,
) {
  if (_remoteServerData.isValid()) {
    return "${_remoteServerData.getScheme()}://${_remoteServerData.getHost()}/${_remoteServerData.getPath()}?dev=$devMode&hot=$hmr&minify=$jsMinify";
  }
  return "http://$host/$bundleName?dev=$devMode&hot=$hmr&minify=$jsMinify";
}