static

package
v0.1.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 4, 2025 License: MIT Imports: 6 Imported by: 0

Documentation

Overview

Package static builds static assets for the frontend.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Build

func Build(config Config) error

Types

type Config

type Config struct {
	// Entrypoint is a directory in which to build JavaScript
	// sources.
	EntryPoint string

	// Bundle is true if files imported by an entry file
	// should be joined together in a single output file.
	Bundle bool

	// Watch is true in development. Sourcemaps are placed inline,
	// the output is unminified, and changes to any JavaScript
	// files will force a rebuild of the JavaScript output.
	Watch bool

	// Minify enables JavaScript minification in production builds.
	Minify bool
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL