package js
import "github.com/gohugoio/hugo/tpl/js"
Package js provides functions for building JavaScript resources
Index ¶
Types ¶
type Namespace ¶
type Namespace struct {
// contains filtered or unexported fields
}
Namespace provides template functions for the "js" namespace.
func New ¶
New returns a new instance of the js-namespaced template functions.
func (*Namespace) Babel ¶
Babel processes the given Resource with Babel.
func (*Namespace) Batch ¶
Batch creates a new Batcher with the given ID. Repeated calls with the same ID will return the same Batcher. The ID will be used to name the root directory of the batch. Forward slashes in the ID is allowed.
func (*Namespace) Build ¶
Build processes the given Resource with ESBuild.
Source Files ¶
- Version
- v0.144.2 (latest)
- Published
- Feb 19, 2025
- Platform
- linux/amd64
- Imports
- 12 packages
- Last checked
- 7 hours ago –
Tools for package owners.