package minifier

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

Index

Types

type Client

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

func New(rs *resources.Spec) *Client

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

Source Files

minify.go

Version
v0.63.1
Published
Jan 23, 2020
Platform
js/wasm
Imports
4 packages
Last checked
11 minutes ago

Tools for package owners.