hugo: Index | Files

package minifier

import ""


Package Files


type Client Uses

type Client struct {
    // contains filtered or unexported fields

Client for minification of Resource objects. Supported minifiers 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-12-19. Refresh now. Tools for package owners.