HUGO
News Docs Themes Community GitHub

resources.Babel

resources.Babel [OPTIONS] RESOURCE

Compiles the given JavaScript resource with Babel.

resources.ByType

resources.ByType MEDIATYPE

Returns a collection of global resources of the given media type, or nil if none found.

resources.Concat

resources.Concat TARGETPATH [RESOURCE...]

Returns a concatenated slice of resources.

resources.Copy

resources.Copy TARGETPATH RESOURCE

Copies the given resource to the target path.

resources.ExecuteAsTemplate

resources.ExecuteAsTemplate TARGETPATH CONTEXT RESOURCE

Returns a resource created from a Go template, parsed and executed with the given context.

resources.Fingerprint

resources.Fingerprint [ALGORITHM] RESOURCE

Cryptographically hashes the content of the given resource.

resources.FromString

resources.FromString TARGETPATH STRING

Returns a resource created from a string.

resources.Get

resources.Get PATH

Returns a global resource from the given path, or nil if none found.

resources.GetMatch

resources.GetMatch PATTERN

Returns the first global resource from paths matching the given glob pattern, or nil if none found.

resources.GetRemote

resources.GetRemote URL [OPTIONS]

Returns a remote resource from the given URL, or nil if none found.

resources.Match

resources.Match PATTERN

Returns a collection of global resources from paths matching the given glob pattern, or nil if none found.

resources.Minify

resources.Minify RESOURCE

Minifies the given resource.

resources.PostCSS

resources.PostCSS [OPTIONS] RESOURCE

Processes the given resource with PostCSS using any PostCSS plugin.

resources.PostProcess

resources.PostProcess RESOURCE

Processes the given resource after the build.

resources.ToCSS

resources.ToCSS [OPTIONS] RESOURCE

Transpiles Sass to CSS.