package static

Import Path
	golang.org/x/pkgsite/internal/static (on go.dev)

Dependency Relation
	imports 4 packages, and imported by 2 packages

Involved Source Files Package static builds static assets for the frontend and the worker.
Package-Level Type Names (only one, which is exported)
/* sort exporteds by: | */
Bundle bool StaticPath string Watch bool Write bool func Build(config Config) (*api.BuildResult, error)
Package-Level Functions (only one, which is exported)
Build compiles TypeScript files into minified JavaScript files using github.com/evanw/esbuild. When run with watch=true sourcemaps are placed inline, the output is unminified, and changes to any TypeScript files will force a rebuild of the JavaScript output. This function is used in Server.staticHandler with watch=true when cmd/frontend is run in dev mode and in devtools/cmd/static/main.go with watch=false for building productionized assets.