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.153.4 (latest)
- Published
- Dec 28, 2025
- Platform
- linux/amd64
- Imports
- 3 packages
- Last checked
- 4 months ago –
Tools for package owners.