Documentation ¶
Overview ¶
Package sorvor is an extremely fast, zero config Server for modern web applications.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Sorvor ¶
type Sorvor struct { BuildOptions api.BuildOptions Entry string Host string Port string Serve bool Secure bool }
Sorvor struct
func (*Sorvor) Build ¶
Build walks the index.html, collect all the entries from <script...></script> and <link .../> tags it then runs it through esbuild and replaces the references in index.html with new paths
func (*Sorvor) Esbuild ¶
func (serv *Sorvor) Esbuild(entry string) (string, api.BuildResult)
Esbuild builds a given entrypoint using esbuild
Click to show internal directories.
Click to hide internal directories.