package js
import "github.com/gohugoio/hugo/internal/js"
Index ¶
Types ¶
type BatchPackage ¶
BatchPackage holds a group of JavaScript resources.
type Batcher ¶
type Batcher interface { Build(context.Context) (BatchPackage, error) Config(ctx context.Context) OptionsSetter Group(ctx context.Context, id string) BatcherGroup }
Batcher is used to build JavaScript packages.
type BatcherClient ¶
type BatcherClient interface { New(id string) (Batcher, error) Store() *maps.Cache[string, Batcher] }
BatcherClient is used to do JS batch operations.
type BatcherGroup ¶
type BatcherGroup interface { Instance(sid, iid string) OptionsSetter Runner(id string) OptionsSetter Script(id string) OptionsSetter }
BatcherGroup is a group of scripts and instances.
type OptionsSetter ¶
OptionsSetter is used to set options for a batch, script or instance.
Source Files ¶
Directories ¶
Path | Synopsis |
---|---|
internal/js/esbuild | Package esbuild provides functions for building JavaScript resources. |
- Version
- v0.144.2 (latest)
- Published
- Feb 19, 2025
- Platform
- linux/amd64
- Imports
- 3 packages
- Last checked
- 13 hours ago –
Tools for package owners.