hugo: github.com/gohugoio/hugo/resources/resource_transformers/minifier Index | Files

package minifier

import "github.com/gohugoio/hugo/resources/resource_transformers/minifier"

Index

Package Files

minify.go

type Client Uses

type Client struct {
    // contains filtered or unexported fields
}

Client for minification of Resource objects. Supported minfiers are: css, html, js, json, svg and xml.

func New Uses

func New(rs *resources.Spec) (*Client, error)

New creates a new Client given a specification. Note that it is the media types configured for the site that is used to match files to the correct minifier.

func (*Client) Minify Uses

func (c *Client) Minify(res resources.ResourceTransformer) (resource.Resource, error)

Package minifier imports 4 packages (graph) and is imported by 9 packages. Updated 2020-04-05. Refresh now. Tools for package owners.