def METHOD_NAME(
        name,
        entry_point_defs,
        deps,
        dev_resources,
        dev_server_host,
        dev_server_port,
        **kwargs):
    """Creates a development server target."""
    closure_js_binary(
        name = name,
        compilation_level = "BUNDLE",
        defs = entry_point_defs,
        deps = deps,
        # For J2CL it is in impractical to embed all source into sourcemap since
        # it bloats sourcemaps as well as it slows down bundling.
        nodefs = ["--source_map_include_content"],
        **kwargs
    )
    web_library(
        name = "%s_server" % name,
        srcs = dev_resources,
        host = dev_server_host,
        port = dev_server_port,
        path = "/",
        tags = [
            "ibazel_live_reload",  # Enable ibazel reload server.
            "ibazel_notify_changes",  # Do not to restart the server on changes.
        ],
    )