Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/frugal/dep/esbuild.ts>serve

A frugal web framework
Go to Latest
function serve
import { serve } from "https://deno.land/x/frugal@0.3.0/dep/esbuild.ts";

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