Skip to main content
Using Deno in production at your company? Earn free Deno merch.
Give us feedback
Module

x/fresh/src/server/deps.ts>esbuildTypes.serve

The next-gen web framework.
Extremely Popular
Go to Latest
function esbuildTypes.serve
import { esbuildTypes } from "https://deno.land/x/fresh@1.1.3/src/server/deps.ts";
const { serve } = esbuildTypes;

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