import { esbuildNative } from "https://deno.land/x/dynamic_import_ponyfill@v0.1.4/deps.ts";
const { serve } = esbuildNative;
This function is similar to "build" but it serves the resulting files over HTTP on a localhost address with the specified port.
- Works in node: yes
- Works in browser: no
Documentation: https://esbuild.github.io/api/#serve
Parameters
serveOptions: ServeOptions
buildOptions: BuildOptions
Returns
Promise<ServeResult>